1. Go to this page and download the library: Download manojkumarlinux/ping4sms 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/ */
manojkumarlinux / ping4sms example snippets
ing4SMS\Ping4SMS;
$message = new Ping4SMS('Account key','Sender id');
// send message
$message->destination('Mobile Number')->message('Your Message')->route('Route Number')->templateId('DLT_Templateid')->send();
// Delivery Report Api
$message->deliveryId("delivery id")->deliveryReport();
// Credits Check Api
$message->route("Route Number")->creditsCheck();