Download the PHP package laravel-notification-channels/all-my-sms without Composer
On this page you can find all versions of the php package laravel-notification-channels/all-my-sms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laravel-notification-channels/all-my-sms
More information about laravel-notification-channels/all-my-sms
Files in laravel-notification-channels/all-my-sms
Package all-my-sms
Short Description AllMySms Notifications driver for Laravel
License MIT
Homepage https://github.com/laravel-notification-channels/all-my-sms
Informations about the package all-my-sms
AllMySms notifications channel for Laravel
This package makes it easy to send notifications using AllMySms with Laravel 5.5+, 6.x and 7.x.
Contents
- Installation
- Setting up the AllMySms service
- Usage
- Available Message methods
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
You can install the package via composer:
Setting up the AllMySms service
Add the following code to you 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 number to use, add the routeNotificationForAllMySms
method to your Notifiable model.
This method needs to return a phone number.
Local development
When developing an application that sends sms, you probably don't want to actually send sms to live phone numbers. You may set a universal recipient of all sms sent. This can be done by the ALL_MY_SMS_UNIVERSAL_TO
environment variable or the universal_to
option.
Available Message methods
content(string $content)
: Accepts a string value for the sms content.sender(string $sender)
: Accepts a string value for the sender name.campaign(string $campaign)
: Accepts a string value for the sms campaign name.sendAt(\DateTimeInterface|string $sendAt)
: Accepts a DateTimeInterface or string for the sms due date.parameters(array $parameters)
: Accepts an array for the sms parameters.
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
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
- Mikaël Popowicz
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of all-my-sms with dependencies
guzzlehttp/guzzle Version ^6.2 || ^7.0
illuminate/notifications Version ^5.5 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0
illuminate/support Version ^5.5 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0