Download the PHP package grupodkt/notification-channel-sms without Composer
On this page you can find all versions of the php package grupodkt/notification-channel-sms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download grupodkt/notification-channel-sms
More information about grupodkt/notification-channel-sms
Files in grupodkt/notification-channel-sms
Package notification-channel-sms
Short Description Notification channel SMS
License MIT
Homepage https://github.com/grupodkt/laravel-notification-channel-sms
Informations about the package notification-channel-sms
Sms notifications channel for Laravel 9.0
This package makes it easy to send [Sms notifications] with Laravel 9.0.
Contents
- Usage
- Available Message methods
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
You can install the package via composer:
Setting up your Waba account
Add your Sms Url, Auth Token, and phoneNumberId to your config/services.php
:
Usage
Now you can use the channel in your via()
method inside the notification:
In order to let your Notification know which phone are you sending/calling to, the channel will look for the celular
attribute of the Notifiable model. If you want to override this behaviour, add the routeNotificationForSms
method to your Notifiable model.
Available Message methods
SmsMessage
from('')
: Accepts a phone to use as the notification sender.content('')
: Accepts a string value for the notification body.idCode(0)
: Accepts a integer value for the correlative id message.
Changelog
Please see CHANGELOG for more information what has changed recently.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.