Download the PHP package aldemeery/bulksms-notification-channel without Composer
On this page you can find all versions of the php package aldemeery/bulksms-notification-channel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aldemeery/bulksms-notification-channel
More information about aldemeery/bulksms-notification-channel
Files in aldemeery/bulksms-notification-channel
Package bulksms-notification-channel
Short Description BulkSMS notification channel for laravel.
License MIT
Informations about the package bulksms-notification-channel
BulkSMS Notification Channel
BulkSMS notification channel for laravel.
- Installation
- Sending SMS Notifications
Installation
This package requires php 7.0
or above, and works with Laravel 5.5
or above.
Open the comman line in your project root directory and enter:
The service provider will automatically be registered. Or you may manually add the service provider in your config/app.php
file:
Next, you will need to add a few configuration options to your config/services.php
configuration file. You may copy the example configuration below to get started:
The sms_from
option is the phone number that your SMS messages will be sent from.
Finally add the routeNotificationForBulkSms
method in your Model, which will be used to get the phone number the message should be sent to.
Sending SMS Notifications
If a notification supports being sent as an SMS, you should define a toBulkSms
method on the notification class. This method will receive a $notifiable
entity and should return a Aldemeery\BulkSMS\Messages\BulkSMSMessage
instance:
You also need to add the bulkSms
channel to your notification channels in the via
method:
License
The MIT License (MIT). Please see License File for more information.
All versions of bulksms-notification-channel with dependencies
illuminate/contracts Version ^5.5|^6.0|^7.0|^8.0
illuminate/notifications Version ^5.5|^6.0|^7.0|^8.0
illuminate/support Version ^5.5|^6.0|^7.0|^8.0