Download the PHP package squareetlabs/laravel-smsup without Composer
On this page you can find all versions of the php package squareetlabs/laravel-smsup. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download squareetlabs/laravel-smsup
More information about squareetlabs/laravel-smsup
Files in squareetlabs/laravel-smsup
Package laravel-smsup
Short Description Laravel package to provide SmsUp API integration.
License MIT
Informations about the package laravel-smsup
SmsUp API Integration for Laravel
Installation
Install Package
You can install this package via composer:
Add Service Provider & Facade
For Laravel 5.5+
Once the package is added, the service provider and facade will be autodiscovered.
For Older versions of Laravel
Add the ServiceProvider to the providers array in config/app.php
:
Add the Facade to the aliases array in config/app.php
:
Configuration
Add your SmsUp API key to your config/services.php
file:
Set test_mode
to true
if you want to simulate submitting messages, it's perfect for testing and debugging, it has no cost.
Usage
Using Laravel Notification
Use artisan to create a notification:
Return [smsUp]
in the public function via($notifiable)
method of your notification:
Add the method public function toSmsUp($notifiable)
to your notification, and return an instance of SmsUpMessage
:
If you don't indicate the parameter to
, make sure your notifiable entity has routeNotificationForSmsUp
method defined:
To include the link
in the message you must put the tag {LINK}
in the area of the text of the sms you want.
example:
Using SmsUp Facade
Send messages
Get SmsUp account balance
Verify phone number by SmsUp
This method return true
or false
. This service has a cost charged by SmsUp.
Available Events
LaravelSmsUp comes with handy events which provides the required information about the SMS messages.
Messages Was Sent
Triggered when one or more messages are sent.
Example:
In your EventServiceProvider
:
``
SmsUp Report Received
Triggered when a status report of sent sms is received from SmsUp.
The callback url passed to SmsUp is: http://yourserver/yourapplication/smsup/report
.
Example:
In your EventServiceProvider
:
``
SmsUp API Documentation
Visit SmsUp API Documentation for more information.
Support
Feel free to post your issues in the issues section.
Credits
- Alberto Rial Barreiro
- Jacobo Cantorna Cigarrán
- Desarrollo de software SquareetLabs
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-smsup with dependencies
ext-json Version *
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
illuminate/http Version ~5.5|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
illuminate/routing Version ~5.5|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
guzzlehttp/guzzle Version ^6.2|^7.9.1
illuminate/events Version ~5.5|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
nesbot/carbon Version ^2.0|^3.7.0