Download the PHP package riotj/osonsms-gateway without Composer
On this page you can find all versions of the php package riotj/osonsms-gateway. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download riotj/osonsms-gateway
More information about riotj/osonsms-gateway
Files in riotj/osonsms-gateway
Package osonsms-gateway
Short Description A simple library for sending SMS via OsonSMS API.
License MIT
Homepage https://github.com/Rio-TJ/osonsms
Informations about the package osonsms-gateway
Installation
You can install the package via composer:
Usage
Run following command to publish a migration file:
Run to create a necessary package table.
To create a config file in order to specify OsonSMS credentials run following command:
Open config/smsgateway.php config file and specify following parameters:
- login - Login from OsonSMS
- hash - Hash string
- sender_name - SMS Sender Name assigned to you
You can send SMS in your Laravel code using folowing code:
You can find the logs of your SMS in the table called .
To check your balance use following code which returns a decimal number, indicating your balance in Somoni.
If you have any further questions or recommendations, feel free to send us an email at [email protected].
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Rasul Safarovitch
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.