Download the PHP package adresser/smsbot-sdk without Composer
On this page you can find all versions of the php package adresser/smsbot-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download adresser/smsbot-sdk
More information about adresser/smsbot-sdk
Files in adresser/smsbot-sdk
Package smsbot-sdk
Short Description Easy to use SDK for smsbot platform
License MIT
Informations about the package smsbot-sdk
smsbot-php-sdk
🚀An easy-to-use Software Development Kit made in PHP for communicating with the Smsbot API.
Installation
Download the repository or get it via Composer (recommended):
Versions
This package uses semver.
Supported PHP Versions
This library supports the following PHP implementations:
- PHP 7.2
- PHP 7.3
- PHP 7.4
Quickstart
- Sign up on the smsbot platform
- Get your authentication key (find it on Settings section)
- To send SMSs using your device, connect the device and get the device id and the SIM id
- To send SMSs using the HTTP gateway, make a sender ID (go on Sender ids section)
Include the vendor/autoload.php file to load all the library classes.
The Smsbot facade provides an ingress to the SDK. However, you can use the internal classes at your convenience.
Valid phone number pattern
The phone number must follow this pattern:
Send an SMS through the HTTP Gateway
Notes: To send a bulk sms add more destination using the pushDestination method.
Send an SMS through the registered device
Notes: To send a bulk sms add more destination using the pushDestination method.
Generate an OTP
Using a custom http client
The custom http client must implement the Psr\Http\Client\ClientInterface.
Getting help
For any question or problem, we suggest to open an issue!