1. Go to this page and download the library: Download notifius/php-wctp 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/ */
notifius / php-wctp example snippets
use NotifiUs\WCTP\XML\ClientQuery;
$clientQuery = new ClientQuery();
$xml = $clientQuery
->senderID( 'senderID' )
->recipientID( 'recipientID' )
->trackingNumber( 'trackingNumber' )
->xml();
$clientQuery = new ClientQuery( 'token' );
use Carbon\Carbon;
use NotifiUs\WCTP\XML\MessageReply;
$messageReply = new MessageReply();
$xml = $messageReply
->messageID( 321 )
->senderID( 'senderID' )
->recipientID( 'recipientID' )
->responseToMessageID( 123 )
->submitTimestamp( Carbon::now() )
->payload( 'Reply to a message' )
->xml();
print_r( $xml );
/*
*/