tjmugova/esolutions-sms-laravel
最新稳定版本:v1.0.1
Composer 安装命令:
composer require tjmugova/esolutions-sms-laravel
包简介
Provides EsolutionsSms notification channel for Laravel
README 文档
README
A laravel package for sending notifications via esolutions service.
Installation 🚥
Add the package to your composer.json
"require": {
...
"tjmugova/esolutions-sms-laravel": "{version}"
},
Or just run composer require
$ composer require tjmugova/esolutions-sms-laravel
Configuration
Add your EsolutionsSMS username, Password, API Url, and From to your .env:
ESOLUTIONSSMS_API_URL=https://mobile.esolutions.co.zw/bmg # always required ESOLUTIONS_SMS_API_ID=ZYX # always required ESOLUTIONS_SMS_API_PASSWORD=ABCD # always required ESOLUTIONS_SMS_FROM=1234 # always required
Advanced configuration
Run php artisan vendor:publish --provider="Tjmugova\EsolutionsSms\EsolutionsSmsProvider"
/config/esolutions-sms.php
Usage ✅
For full documentation, please refer to Laravel Notification Docs
Sending Notification
To send notification you can use the Laravel Notification Facade and pass the mobile number as the first parameter
public function send ()
{
Notification::send('263777777777', new LeadAddedNotification());
Notification::send(['263777777777', '263777777777'], new LeadAddedNotification());
}
...
/**
* Get the EsolutionsSms representation of the notification.
*
* @param mixed $notifiable
* @return Tjmugova\EsolutionsSms\Messages\EsolutionsSmsMessage
*/
public function toEsolutionsSms($notifiable)
{
return (new EsolutionsSmsMessage('This is a test message from Laravel'));
}
NOTE:
If you find any bugs or you have some ideas in mind that would make this better. Please don't hesitate to create a pull request.
If you find this package helpful, a simple star is very much appreciated.
MIT LICENSE
统计信息
- 总下载量: 149
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-07-11