A simple PHP library that wraps around the Mailinator API for use in PHP projects.
PHP 5.4+ or HHVM 3.2+, and Composer are required.
To get the latest version, simply require "brnlbs/mailinator": "~1.0" in your composer.json file. You'll then need to run composer install or composer update to download it and have the autoloader updated.
$client = new Brnlbs\Mailinator\Client('api_key');
try
{
$response = $client->publicInbox('[email protected]');
echo('<pre>' . print_r($response, true) . '</pre>');
}
catch (Brnlbs\Spacejam\Exception $e)
{
printf('%d: %s', $e->getCode(), $e->getMessage());
}The MIT License (MIT). Please see License File for more information.