PHP code example of drewlabs / envoyer-smpp-v3

1. Go to this page and download the library: Download drewlabs/envoyer-smpp-v3 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/ */

    

drewlabs / envoyer-smpp-v3 example snippets


use Drewlabs\Envoyer\Drivers\Smpp\Adapter;
use Drewlabs\Envoyer\Drivers\Smpp\ClientSecretKeyServer;
use Drewlabs\Envoyer\Message;

$config = ;
$message = Message::new()->from('22990667812')->to('22890667723')->content('Hi!');

// Send the SMPP request
$result = $adapter->sendRequest($message);