2017 © Pedro Peláez
 

library jusibe-php-lib

Jusibe PHP Library

image

unicodeveloper/jusibe-php-lib

Jusibe PHP Library

  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 16 % Grown

The README.md

jusibe-php-lib

Latest Stable Version License Build Status Coveralls Quality Score Total Downloads, (*1)

Jusibe Library for PHP, (*2)

Installation

PHP 7.0+ or HHVM 3.3+, and Composer are required., (*3)

To get the latest version of jusibe-php-lib, simply add the following line to the require block of your composer.json file., (*4)

"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., (*5)

Usage

Available methods for use are:, (*6)


/** * 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 // include your composer dependencies require_once 'vendor/autoload.php'; use Unicodeveloper\Jusibe\Jusibe; $publicKey = 'xxxxxxxxxxxxxx'; $accessToken = 'xxxxxxxxxxxxxx'; $jusibe = new Jusibe($publicKey, $accessToken); $message = "I LOVE YOU, BABY"; $payload = [ 'to' => '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, (*7)

SendSMS Response, (*8)

Send a Bulk SMS


<?php // include your composer dependencies require_once 'vendor/autoload.php'; use Unicodeveloper\Jusibe\Jusibe; $publicKey = 'xxxxxxxxxxxxxx'; $accessToken = 'xxxxxxxxxxxxxx'; $jusibe = new Jusibe($publicKey, $accessToken); $message = "You are invited for party!!!"; $payload = [ 'to' => '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, (*9)

Send BulkSMS Response, (*10)

Check SMS Credits


<?php // include your composer dependencies require_once 'vendor/autoload.php'; use Unicodeveloper\Jusibe\Jusibe; $publicKey = 'xxxxxxxxxxxxxx'; $accessToken = 'xxxxxxxxxxxxxx'; $jusibe = new Jusibe($publicKey, $accessToken); try { $response = $jusibe->checkAvailableCredits()->getResponse(); print_r($response); } catch(Exception $e) { echo $e->getMessage(); }

Response Info for Developer, (*11)

Check SMS Credits Response, (*12)

Check Delivery Status


<?php // include your composer dependencies require_once 'vendor/autoload.php'; use Unicodeveloper\Jusibe\Jusibe; $publicKey = 'xxxxxxxxxxxxxx'; $accessToken = 'xxxxxxxxxxxxxx'; $jusibe = new Jusibe($publicKey, $accessToken); try { $response = $jusibe->checkDeliveryStatus('8nb1wrgdjw')->getResponse(); print_r($response); } catch(Exception $e) { echo $e->getMessage(); }

Response Info for Developer, (*13)

Check Delivery Status Response, (*14)

Check Bulk Delivery Status


<?php // include your composer dependencies require_once 'vendor/autoload.php'; use Unicodeveloper\Jusibe\Jusibe; $publicKey = 'xxxxxxxxxxxxxx'; $accessToken = 'xxxxxxxxxxxxxx'; $jusibe = new Jusibe($publicKey, $accessToken); try { $response = $jusibe->checkBulkDeliveryStatus('n2v9gby1jy')->getResponse(); print_r($response); } catch(Exception $e) { echo $e->getMessage(); }

Response Info for Developer, (*15)

Check Bulk Delivery Status Response, (*16)

Contributing

Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities., (*17)

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!, (*18)

Don't forget to follow me on twitter!, (*19)

Thanks! Prosper Otemuyiwa., (*20)

License

The MIT License (MIT). Please see License File for more information., (*21)

The Versions

14/08 2016

dev-master

9999999-dev

Jusibe PHP Library

  Sources   Download

MIT

The Requires

 

The Development Requires

api php sms open source jusibe

14/08 2016

1.0.1

1.0.1.0

Jusibe PHP Library

  Sources   Download

MIT

The Requires

 

The Development Requires

api php sms open source jusibe

18/04 2016