Download the PHP package luisdalmolin/laravel-zenvia-channel without Composer
On this page you can find all versions of the php package luisdalmolin/laravel-zenvia-channel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download luisdalmolin/laravel-zenvia-channel
More information about luisdalmolin/laravel-zenvia-channel
Files in luisdalmolin/laravel-zenvia-channel
Package laravel-zenvia-channel
Short Description Send SMS messages with Zenvia
License MIT
Homepage https://github.com/luisdalmolin/laravel-zenvia-channel
Informations about the package laravel-zenvia-channel
Zenvia Notifications Channel for Laravel 5
This package makes it easy to send Zenvia SMS messages using Zenvia API with Laravel 5.
Contents
- Installation
- Configuration
- Usage
- Available Message methods
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
You can install the package via composer:
You must install the service provider:
Configuration
Configure your credentials:
Usage
You can now use the channel in your via()
method inside the Notification class.
Routing a message
You can either send the notification by providing with the chat id of the recipient to the to($phone) method like shown in the above example or add a routeNotificationForZenvia() method in your notifiable model:
Available Message methods
to($phone)
: (integer) Recipient's phone.content('message')
: (string) SMS message.from('Sender')
: (string) Sender's name.id('sms-id')
: (string) SMS ID.
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
- Luís Dalmolin
- All Contributors
License
The MIT License (MIT). Please see License File for more information.