1. Go to this page and download the library: Download smart-raya/ippanel-laravel 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/ */
smart-raya / ippanel-laravel example snippets
# return float64 type credit amount
$credit = IPPanel::getCredit();
$bulkID = "message-tracking-code";
$message = IPPanel::get_message($bulkID);
echo $message->status; // get message status
echo $message->cost; // get message cost
echo $message->payback; // get message payback
$bulkID = "message-tracking-code"
list($statuses, $paginationInfo) = IPPanel::fetchStatuses($bulkID, 0, 10)
// you can loop in messages statuses list
foreach($statuses as status) {
echo sprintf("Recipient: %s, Status: %s", $status->recipient, $status->status);
}
echo sprintf("Total: ", $paginationInfo->total);
list($messages, $paginationInfo) = IPPanel::fetchInbox(0, 10);
foreach($messages as $message) {
echo sprintf("Received message %s from number %s in line %s", $message->message, $message->sender, $message->number);
}
$pattern = IPPanel::createPattern("%name% is awesome", False);
echo $pattern->code;