Download the PHP package mobtexting/mobtexting-laravel without Composer
On this page you can find all versions of the php package mobtexting/mobtexting-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mobtexting/mobtexting-laravel
More information about mobtexting/mobtexting-laravel
Files in mobtexting/mobtexting-laravel
Package mobtexting-laravel
Short Description A boilerplate for contributions.
License MIT
Homepage https://github.com/mobtexting/mobtexting-laravel
Informations about the package mobtexting-laravel
Mobtexting notifications channel for Laravel 5.3+
This package makes it easy to send Mobtexting notifications with Laravel 5.3.
Contents
- Installation
- Setting up your Mobtexting account
- Usage
- Available Message methods
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
You can install the package via composer:
Add the service provider (only required on Laravel 5.4 or lower):
Setting up your Mobtexting account
Add your Mobtexting Auth Token, and From Number (optional) 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 to, the channel will look for the phone_number
attribute and mobile
of the Notifiable model. If you want to override this behaviour, add the routeNotificationForMobtexting
method to your Notifiable model.
Available Message methods
MobtextingSmsMessage
from('')
: Accepts a phone to use as the notification sender.text('')
: Accepts a string value for the notification body.to('')
: Accepts a string value for the notification to (over writes default).
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.
License
The MIT License (MIT). Please see License File for more information.
All versions of mobtexting-laravel with dependencies
mobtexting/sdk Version ^1.0
illuminate/notifications Version ^7|^8|^9.0
illuminate/support Version ^7|^8|^9.0
illuminate/events Version ^7|^8|^9.0