Download the PHP package victorybiz/unified-sms without Composer
On this page you can find all versions of the php package victorybiz/unified-sms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download victorybiz/unified-sms
More information about victorybiz/unified-sms
Files in victorybiz/unified-sms
Package unified-sms
Short Description Unified SMS library package for Laravel and PHP (Non-Laravel) to send text messages through multiple swappable drivers.
License MIT
Informations about the package unified-sms
Unified SMS
Unified SMS library package for Laravel and PHP (Non-Laravel) to send text messages through multiple swappable drivers.
Supported Drivers and Services
It currently ships with the following drivers:
null
- Null (SMS, Voice SMS only) - for test purposes, this driver does nothing.routemobile
- RouteMobile - RouteSMS (SMS only)nexmo
- Nexmo (SMS only)moreify
- Moreify (SMS only)betasms
- BetaSMS (SMS only)multitexter
- MultiTexter (SMS only)
Installation
Install using composer, from the command line run:
Laravel Project
Alternatively, you can add "victorybiz/unified-sms": "^1.1"
to your composer.json file's require
section and
then you'll then need to run composer install
or composer update
to download it and have the autoloader updated.
If you use Laravel >= 5.5 you can skip this step and go to
configuration
If you use Laravel < 5.5, you need to register the service provider with the application. Open up
config/app.php
and locate theproviders
key.
And add the UnifiedSMS alias to config/app.php:
Configuration (Laravel)
You must publish the package's configuration files, (unified-sms.php also published with this) And add the UnifiedSMS alias to config/app.php:
Open up config/unified-sms.php
use the env
variables to set your DEFAULT DRIVER and API Credentials.
Usage in Laravel Project
Please use the UnifiedSMS
Facade
You're good to go, send sms
Usage in PHP (Non-Laravel) Project
Require the vendor autoload file in your php script.
Create a unified_sms_config.php
file anywhere in your project directory.
Enter the following block into your unified_sms_config.php
and set your DEFAULT DRIVER and API Credentials.
Require the config file in your php script.
Alternatively
You're good to go, send sms
Response from Drivers
On successful, $response
will return json data
On failure, $response
will return json data
The failure status codes are
Bug Reports and Issue tracking
Kindly make use of the issue tracker for bug reports, feature request, additional web service request and security issues.