PHP code example of unicodeveloper / laravel-jusibe
1. Go to this page and download the library: Download unicodeveloper/laravel-jusibe library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
return [
/**
* Public Key From Jusibe Dashboard
*
*/
'publicKey' => getenv('JUSIBE_PUBLIC_KEY'),
/**
* Access Token From Jusibe Dashboard
*
*/
'accessToken' => getenv('JUSIBE_ACCESS_TOKEN'),
];
/**
* Send SMS using the Jusibe API
* @param array $payload
* @return object
*/
Jusibe::sendSMS($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();