Jusibe Library for PHP
PHP 5.4 or HHVM 3.3 , and Composer are required.
To get the latest version of jusibe-php, simply add the following line to the require block of your composer.json
file.
"unicodeveloper/jusibe-php": "dev-master"
You'll then need to run composer install
or composer update
to download it and have the autoloader updated.
<?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();
}
Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities.
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!
Thanks! Prosper Otemuyiwa.
The MIT License (MIT). Please see License File for more information.