ittoolspl/php-lib-smslabs

This package is abandoned and no longer maintained. No replacement package was suggested.

PHP client for SMSLabs.pl

This package has no released version yet, and little information is available.


README

Licence MIT Build Status Build Status Scrutinizer Code Quality Code Coverage SensioLabsInsight

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.