Download the PHP package abdulmatinsanni/api-x without Composer
On this page you can find all versions of the php package abdulmatinsanni/api-x. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download abdulmatinsanni/api-x
More information about abdulmatinsanni/api-x
Files in abdulmatinsanni/api-x
Package api-x
Short Description An unofficial laravel package for SmartSMSSolutions' APIx. The Package that helps deliver SMS to phone numbers on Do Not Disturb (DND).
License MIT
Homepage https://github.com/AbdulmatinSanni/APIx
Informations about the package api-x
api-x
An unofficial laravel package for SmartSMSSolutions' API-x. The Package that helps deliver SMS to phone numbers on Do Not Disturb (DND).
Structure
Below is the file structure of this package.
Install
You can install the package via composer:
Add the service provider (only required on Laravel 5.4 or lower):
Setting up your API-x account
Add your API-x API Token (string), Log Message (boolean), Mock SMS (boolean) and Sender Name (optional|string) to your .env (environment) file:
Usage
In Controllers:
Below is an example of API-x usage in controllers.
For Notifications:
Setting up in model:
Setting up in notifications
Setting up in controllers
Available message methods
- : Accepts an array or string of recipients' phone number(s).
- : Accepts a phone to use as the sms sender.
- : Accepts a string value for the sms body.
- : Does the sending of the sms. Can also accept a string which represent sms body if message('') was skipped.
Command line
Showing all entries of log:
Showing the last logged sms:
Limiting the entries of log to be displayed:
Clearing all entries of log:
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
Contributing
Please see CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Abdulmatin Sanni
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of api-x with dependencies
guzzlehttp/guzzle Version ~6.0
illuminate/support Version ~5.1
illuminate/routing Version ~5.1