Ratings | | Unique User Downloads | | Download Rankings |
Not yet rated by the users | | Total: 262 This week: 1 | | All time: 7,753 This week: 491 |
|
Description | | Author |
This package can deliver SMS messages using the SmartSMS API.
It can send HTTP request messages to the SmartSMS API Web server to execute several types of operations of with their SMS Web services.
Currently it can send SMS messages to given numbers and get balance of the current SmartSMS API. Recommendations
| |
|
|
Innovation award
Nominee: 1x |
|
Details
Smartsms
A flexible PHP library for smartsms solutions
Installation
composer require coderatio/smartsms
Usage
require('vendor/autoload.php');
use Coderatio\Smartsms\Smartsms;
$config['token'] = env('SMARTSMS_TOKEN');
// Or
$config['token'] = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
$sms = Smartsms::init($config)
->to('XXX-XX-XXXX-XXXX')
->from('Coderatio')
->message('I have installed the library.')
->send();
Response
The library returns json and object response type.
$sms->asObject(); //Returns response as object
$sms->response(); //Returns as json.
Todo
-
Send sms from files (txt, pdf, docs, .xls)
-
Test (Phpunit)
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.