PHP code example of eventhomes / laravel-mandrillhooks
1. Go to this page and download the library: Download eventhomes/laravel-mandrillhooks 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/ */
eventhomes / laravel-mandrillhooks example snippets
use EventHomes\Api\Webhooks\MandrillWebhookController;
class MyController extends MandrillWebhookController {
/**
* Handle a hard bounced email
*
* @param $payload
*/
public function handleHardBounce($payload)
{
$email = $payload['msg']['email'];
}
/**
* Handle a rejected email
*
* @param $payload
*/
public function handleReject($payload)
{
$email = $payload['msg']['email'];
}
}