1. Go to this page and download the library: Download amply/amply-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/ */
amply / amply-php example snippets
// Uncomment the next line if you're using a dependency loader (such as Composer) (recommended)
// <PATH TO> with the path to the amply-php.php file
// verifieddomain.com',
'subject' => 'My first Amply email!',
'text' => 'This is easy',
'html' => '<strong>and fun :)</strong>'
));
}
catch (\Amply\Exceptions\APIException $e) {
echo "Generic API error\n";
echo "$e->code\n";
echo "$e->text\n";
}
catch (\Amply\Exceptions\ValidationException $e) {
echo "Invalid input\n";
print_r($e->errors);
}
catch (\Amply\Exceptions\ResourceNotFoundException $e) {
echo "Missing resource\n";
print_r($e->errors);
}