jkb32 / smslabs-php-sdk
PHP client for SMSLabs.pl
Installs: 5 684
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^7.0
- ext-json: *
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- humbug/humbug: ~1.0@dev
- mockery/mockery: ^0.9.5
- phpunit/phpunit: ^5.6
- squizlabs/php_codesniffer: ^2.7
This package is auto-updated.
Last update: 2024-03-29 04:40:01 UTC
README
This repository is a copy of "ittoolspl / php-lib-smslabs" repository because it has been removed from GitHub. All rights to this library are owned by its author.
Tags
- v1.0 - deprecated tag without tests for PHP 5.6+
- v2.0 - 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 jkb32/smslabs-php-sdk
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.