Provides EsolutionsSms notification channel for Laravel
tjmugova/esolutions-sms-laravel is a Laravel package for provides esolutionssms notification channel for laravel.
It currently has 0 GitHub stars and 211 downloads on Packagist (latest version v1.0.1).
Install it with composer require tjmugova/esolutions-sms-laravel.
Discover more Laravel packages by tjmugova
or browse all Laravel packages to compare alternatives.
Last updated
A laravel package for sending notifications via esolutions service.
Add the package to your composer.json
"require": {
...
"tjmugova/esolutions-sms-laravel": "{version}"
},
Or just run composer require
$ composer require tjmugova/esolutions-sms-laravel
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
Run php artisan vendor:publish --provider="Tjmugova\EsolutionsSms\EsolutionsSmsProvider"
/config/esolutions-sms.php
For full documentation, please refer to Laravel Notification Docs
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