1. Go to this page and download the library: Download jagdish-j-p/smpp-php 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/ */
jagdish-j-p / smpp-php example snippets
use JagdishJP\SmppPhp\Smpp;
$smpp = new Smpp('localhost',2775, true, true);
$smpp->bindTransmitter('SENDERID', 'USERNAME', 'PASSWORD');
$response = $smpp->sendSms('recepient number', 'Message');
$smpp->close();
use JagdishJP\SmppPhp\Smpp;
$smpp = new Smpp('localhost',2775, true, true);
$smpp->bindReceiver('SENDERID', 'USERNAME', 'PASSWORD');
$message = $smpp->readSms();
$smpp->close();
use JagdishJP\SmppPhp\Smpp;
$smpp = new Smpp('localhost',2775, true, true);
$smpp->bindTransreceiver('SENDERID', 'USERNAME', 'PASSWORD');
$response = $smpp->sendSms('recepient number', 'Message');
$message = $smpp->readSms();
$smpp->close();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.