Download the PHP package junityco/laravel-nowsms without Composer
On this page you can find all versions of the php package junityco/laravel-nowsms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download junityco/laravel-nowsms
More information about junityco/laravel-nowsms
Files in junityco/laravel-nowsms
Package laravel-nowsms
Short Description NowSMS service provider for Laravel
License MIT
Homepage https://github.com/junityco/laravel-nowsms
Informations about the package laravel-nowsms
NowSMS for Laravel
This package makes it easy to send NowSMS notifications with Laravel.
Installation
Require this package, with Composer, in the root directory of your project.
Add the service provider to config/app.php
in the providers
array.
If you want you can use the facade. Add the reference in config/app.php
to your aliases array.
You will also need to install guzzlehttp/guzzle
http client to send requests.
Setting up your NowSMS account
Add your NowSMS url, username, password 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 phone_number
attribute of the Notifiable model. If you want to override this behaviour, add the routeNotificationForNowsms
method to your Notifiable model.
Example using via code
All versions of laravel-nowsms with dependencies
nesbot/carbon Version ^1.18
guzzlehttp/guzzle Version ^6.2
illuminate/notifications Version 5.3.* || 5.4.* || 5.5.*
illuminate/support Version 5.3.* || 5.4.* || 5.5.*