ittoolspl / php-lib-smslabs
PHP client for SMSLabs.pl
Installs: 9 447
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 2
Forks: 2
pkg:composer/ittoolspl/php-lib-smslabs
This package has no released version yet, and little information is available.
README
Tags
- v1.0 - deprecated tag without tests for PHP 5.6+
- v2.0 - deprecated fully tested tag for PHP 5.6+
- v3.0 - fully tested tag for PHP 7.0+
Installation
The recommended way to install the library is through Composer:
$ composer require ittoolspl/php-lib-smslabs
Usage
Constructor:
$sms = new \Ittoolspl\Smslabs\SmslabsClient($appKey, $secret);
Send SMS:
$sms->setSenderId($numberOrSenderId) ->setExpirationMinutes($minutes) // optionally ->setSendDate($dateTime) // optionally ->setFlashMessage($isFlashMessage) // optionally ->add($number, $message) ->send();
Show queued SMS (before send())
$sms->getSmsQueue();
Get recently sent SMS status (after send()):
$sms->getSentStatus();
Get available SenderId:
$sms->getAvailableSenders();
Account Balance:
$sms->getAccountBalance();
Check incoming SMS:
$sms->getSmsIn();
Check sent SMS:
$sms->getSmsOut($offset, $limit);
Check details of SMS:
$sms->getSmsDetails();
Contributing
Feel free to contribute. If you've got any problems/ideas, please create new issue or develop new pull request.
License
php-lib-smslab is open-sourced software licensed under the MIT license.