1. Go to this page and download the library: Download postalsys/emailengine-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/ */
postalsys / emailengine-php example snippets
use EmailEnginePhp\EmailEngine;
$ee = new EmailEngine(array(
"access_token" => "3eb50ef80efb67885afb43844df8ae01e4eecb99c4defac3aa37ec5b8b4f1339",
"service_secret" => "a23da152f5b88543f52420a0de0e0eb6",
"ee_base_url" => "http://127.0.0.1:3000/",
"redirect_url" => "http://127.0.0.1:5000/handler.php",
));
$ee->set_webhook_settings(array(
// are webhooks enabled or not
"enabled" => true,
// The URL webhooks are POSTed to
"url" => "http://127.0.0.1:5000/webhooks.php",
// Webhooks events to listen for, "*" means all events
"events" => array("*"),
// Additional message headers to