5818959 / smstraffic-notification-channel
SmsTraffic Notification Channel for laravel.
Installs: 47
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 3
pkg:composer/5818959/smstraffic-notification-channel
Requires
- php: ^7.1.3
- 5818959/smstraffic-client: ^0.5.1
- illuminate/notifications: ~5.8.0|^6.0
Requires (Dev)
- mockery/mockery: ^1.0
- phpunit/phpunit: ^7.0
This package is auto-updated.
Last update: 2025-10-31 00:17:50 UTC
README
Details
Based on Laravel Nexmo Notification Channel.
Official Documentation
See documentation for Laravel Nexmo Notification Channel on the Laravel website.
Configuration options
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:
'smstraffic' => [
'login' => env('SMSTRAFFIC_LOGIN'),
'password' => env('SMSTRAFFIC_PASSWORD'),
'sms_from' => env('SMSTRAFFIC_SMS_FROM'),
],
The sms_from option is the phone number that your SMS messages will be sent from. You should use a phone number from your SmsTraffic control panel.
For testing purposes you may want to change the URL that smstraffic-client makes requests to from https://api.smstraffic.ru/multi.php to something else. You can do this by providing a url option.
'smstraffic' => [
...
'url' => env('SMSTRAFFIC_URL'),
],
SmsTrafficMessage attributes
SmsTrafficMessage has additional attributes:
fromattribute allows you to override thesms_fromconfiguration option;toattribute allows you to override the recipient phone number;typeattribute allows you to set the type of the message; this is useful if you plan to distinguish between messages in your app later.
License
Laravel SmsTraffic Notification Channel is open-sourced software licensed under the MIT license.