https://github.com/unicodeveloper/jusibe-php-lib
:package: PHP Client Library for Jusibe SMS REST API Service
https://github.com/unicodeveloper/jusibe-php-lib
Last synced: 6 months ago
JSON representation
:package: PHP Client Library for Jusibe SMS REST API Service
- Host: GitHub
- URL: https://github.com/unicodeveloper/jusibe-php-lib
- Owner: unicodeveloper
- License: mit
- Created: 2016-04-09T06:32:04.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-07-14T13:45:52.000Z (over 5 years ago)
- Last Synced: 2025-05-31T14:30:53.991Z (7 months ago)
- Language: PHP
- Homepage: https://jusibe.com
- Size: 47.9 KB
- Stars: 33
- Watchers: 4
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# jusibe-php-lib
[](https://packagist.org/packages/unicodeveloper/jusibe-php-lib)
[](LICENSE.md)

[](https://travis-ci.org/unicodeveloper/jusibe-php-lib)
[](https://coveralls.io/github/unicodeveloper/jusibe-php-lib?branch=master)
[](https://scrutinizer-ci.com/g/unicodeveloper/jusibe-php-lib)
[](https://packagist.org/packages/unicodeveloper/jusibe-php-lib)
> Jusibe Library for PHP
## Installation
[PHP](https://php.net) 7.0+ or [HHVM](http://hhvm.com) 3.3+, and [Composer](https://getcomposer.org) are required.
To get the latest version of jusibe-php-lib, simply add the following line to the require block of your `composer.json` file.
```
"unicodeveloper/jusibe-php-lib": "1.0.*"
```
You'll then need to run `composer install` or `composer update` to download it and have the autoloader updated.
## Usage
Available methods for use are:
```php
/**
* Send SMS using the Jusibe API
* @param array $payload
* @return object
*/
$jusibe->sendSMS($payload)->getResponse();
/**
* Send Bulk SMS using the Jusibe API
* @param array $payload
* @return object
*/
$jusibe->sendBulkSMS($payload)->getResponse();
/**
* Check the available SMS credits left in your Jusibe account
* @return object
*/
$jusibe->checkAvailableCredits()->getResponse();
/**
* Check the delivery status of a sent SMS
* @param string $messageID
* @return object
*/
$jusibe->checkDeliveryStatus('8nb1wrgdjw')->getResponse();
/**
* Check the delivery status of a sent Bulk SMS
* @param string $bulkID
* @return object
*/
$jusibe->checkBulkDeliveryStatus('8nb1wrgdjw')->getResponse();
```
### Send an SMS
```php
'7079740987',
'from' => 'PROSPER DATING NETWORK',
'message' => $message
];
try {
$response = $jusibe->sendSMS($payload)->getResponse();
print_r($response);
} catch(Exception $e) {
echo $e->getMessage();
}
```
**Response Info for Developer**

### Send a Bulk SMS
```php
'7079740987,8077139164',
'from' => 'DOZIE GROUP',
'message' => $message
];
try {
$response = $jusibe->sendBulkSMS($payload)->getResponse();
print_r($response);
} catch(Exception $e) {
echo $e->getMessage();
}
```
**Response Info for Developer**

### Check SMS Credits
```php
checkAvailableCredits()->getResponse();
print_r($response);
} catch(Exception $e) {
echo $e->getMessage();
}
```
**Response Info for Developer**

### Check Delivery Status
```php
checkDeliveryStatus('8nb1wrgdjw')->getResponse();
print_r($response);
} catch(Exception $e) {
echo $e->getMessage();
}
```
**Response Info for Developer**

### Check Bulk Delivery Status
```php
checkBulkDeliveryStatus('n2v9gby1jy')->getResponse();
print_r($response);
} catch(Exception $e) {
echo $e->getMessage();
}
```
**Response Info for Developer**

## Contributing
Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.
## How can I thank you?
Why not star the github repo? I'd love the attention! Why not share the link for this repository on Twitter or HackerNews? Spread the word!
Don't forget to [follow me on twitter](https://twitter.com/unicodeveloper)!
Thanks!
Prosper Otemuyiwa.
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.