1. Go to this page and download the library: Download mirvan/ippanel 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/ */
mirvan / ippanel example snippets
"ippanel" => [
'api_key' => 'API_KEY_SECRET',
],
use Mirvan\IPPanel\IPPanel;
$client = new IPPanel();
# return float64 type credit amount
$credit = $client->getCredit();
$bulkID = $client->send(
"+9810001", // originator
["98912xxxxxxx"], // recipients
"ippanel is awesome" // message
);
php
public function routeNotificationForIPPanel()
{
return '09121234567';
}
php
public function ippanelOriginator()
{
return '+983000505';
}
php
use Mirvan\IPPanel\IPPanelChannel;
public function via($notifiable)
{
return [IPPanelChannel::class];
}
php
use Mirvan\IPPanel\IPPanelMessage;
public function toIPPanel($notifiable)
{
return (new IPPanelMessage)
->reference('09121231212')
->originator('+983000505')
->body('message');
}
php
use Mirvan\IPPanel\IPPanelMessage;
public function toIPPanel($notifiable)
{
return (new IPPanelMessage)
->reference('09121231212')
->originator('+983000505')
->pattern('pattern_code')
->variable('variable-name','1234');
}
php
return (new IPPanelMessage)
->originator('+983000505')
->reference('09121231212')
->body('message');
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.