velostazione / laravel-besms
BeSMS Laravel Notification Channel
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/velostazione/laravel-besms
Requires
- php: ^8.0
- illuminate/notifications: ^8.62
- illuminate/support: ^8.62
- velostazione/besms: ^1.1
Requires (Dev)
- phpunit/phpunit: ^9.5
README
BeSMS Notifications Channel for Laravel
Installation
composer require velostazione/laravel-besms
Add the configuration to your .env file:
BESMS_USERNAME= BESMS_PASSWORD= BESMS_API_ID= BESMS_REPORT_TYPE= # Default: C BESMS_SENDER= # Default: null
Usage
You can use the channel in your via() method inside the notification:
use Illuminate\Notifications\Notification; use \Velostazione\Laravel\BeSMSChannel; class YourNotification extends Notification { public function via($notifiable): array { return [BeSMSChannel::class]; } public function toBeSMS($notifiable): BeSMSMessage { $message = new BeSMSMessage(); $message->content("Hello {$notifiable->name}!"); $message->sender("Me"); return $message; } }