1. Go to this page and download the library: Download toucantext/php-sdk 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/ */
// return all your messages
$toucan->messages->all();
// return 15 messages maximum and acknowledge them
$toucan->messages->all(true, 15);
// return only inbound messages
$toucan->messages->get('messagesOnly');
// return only delivery receipts
$toucan->messages->get('dlrsOnly');
// return 15 inbound messages maximum and acknowledge them
$toucan->messages->get('messagesOnly', true, 15);
// return 15 delivery receipts maximum and acknowledge them
$toucan->messages->get('dlrsOnly', true, 15);