Download the PHP package aminkt/sms-driver-rest-api without Composer
On this page you can find all versions of the php package aminkt/sms-driver-rest-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aminkt/sms-driver-rest-api
More information about aminkt/sms-driver-rest-api
Files in aminkt/sms-driver-rest-api
Package sms-driver-rest-api
Short Description Rest Api Sms driver created to work with more than one sms service provider with same interface.
License GPL-3.0-only
Informations about the package sms-driver-rest-api
Rest Api Sms driver
Rest Api Sms driver created to work with more than one sms service provider with same interface.
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
LOGIN_DATA
depends on what driver is used to send sms, there is a list of supported drivers is blew User your own driverIf you want you can simply write your own driver and attach it to this library.
And if you want you can publish it in this library by your own name.
If you want create your own driver please flow below steps:
- Create your class and use psr-7 namespcae.
- Extend your class from
aminkt\sms\drivers\AbstracDriver
- Implement your codes.
- Attach your driver to library as described before
- Publish your code in
sms-driver-rest-api
library
List of drivers
List of driver that published and avilable right now.
Driver name | namespace | createdBy | publish date |
---|---|---|---|
Pardad | \aminkt\sms\drivers\Pardad | Amin Keshavarz | 17 / 8 /2017 |
KaveNegar | \aminkt\sms\drivers\KaveNegar | mr-exception | 5 / 2 /2018 |
Login Data for Pardad
parameters | type | description |
---|---|---|
username | string | username for auth |
password | string | password for auth |
Login Data for KaveNegar
parameters | type | description |
---|---|---|
token | string | token given in cpanel |
Be aware use of this library and its driver is alowed for all but you should keep recources and authors names.
Help us to improve
If you create your own driver we become so happy if you pulblish it in our library.
[Mail to Aminn Keshavarz](mailto: [email protected])