PHP code example of akhan619 / laravel-ses-tracking
1. Go to this page and download the library: Download akhan619/laravel-ses-tracking 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/ */
akhan619 / laravel-ses-tracking example snippets
'ses' => [
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION'),
],
'subscriber' => [
'http' => FALSE,
'https' => TRUE,
],
'domain' => null, // If null the domain will be pulled from APP_URL.
'scheme' => null, // If null the scheme will be pulled from APP_URL.
'active' => [
'sends' => TRUE,
'rendering_failures' => TRUE,
'rejects' => FALSE,
'deliveries' => FALSE,
'bounces' => TRUE,
'complaints' => FALSE,
'delivery_delays' => FALSE,
'subscriptions' => FALSE,
'opens' => FALSE,
'clicks' => FALSE,
],
'route_prefix' => 'email/notification', // Set to null if no prefix is
'routes' => [
'sends' => 'sends',
'rendering_failures' => 'rendering-failures',
'rejects' => 'rejects',
'deliveries' => 'deliveries',
'bounces' => 'bounces',
'complaints' => 'complaints',
'delivery_delays' => 'delivery-delays',
'subscriptions' => 'subscriptions',
'opens' => 'opens',
'clicks' => 'clicks',
],
'configuration_set' => [
'ConfigurationSetName' => 'ses-event',
'DeliveryOptions' => [
'SendingPoolName' => null,
'TlsPolicy' => 'REQUIRE',
],
'ReputationOptions' => [
'LastFreshStart' => null,
'ReputationMetricsEnabled' => FALSE,
],
'SendingOptions' => [
'SendingEnabled' => TRUE,
],
'SuppressionOptions' => [
'SuppressedReasons' => [],
],
'Tags' => [],
'TrackingOptions' => [
'CustomRedirectDomain' => null,
],
],
'topic_name_prefix' => env('APP_NAME', 'local'), // Set to null if no prefix is
'topic_names' => [
'sends' => 'sends',
'rendering_failures' => 'rendering-failures',
'rejects' => 'rejects',
'deliveries' => 'deliveries',
'bounces' => 'bounces',
'complaints' => 'complaints',
'delivery_delays' => 'delivery-delays',
'subscriptions' => 'subscriptions',
'opens' => 'opens',
'clicks' => 'clicks',
],
'topic_name_suffix' => 'us-east-1', // Set to null if no prefix is
'DeliveryPolicy' => [],
'Policy' => [],
'KmsMasterKeyId' => null,
'Tags' => [],
'event_destination_prefix' => 'destination',
'destination_names' => [
'sends' => 'sns',
'rendering_failures' => 'sns',
'rejects' => 'sns',
'deliveries' => 'sns',
'bounces' => 'sns',
'complaints' => 'sns',
'delivery_delays' => 'sns',
'subscriptions' => 'sns',
'opens' => 'sns',
'clicks' => 'sns',
],
'event_destination_suffix' => 'us-east-1',
'topic_name_as_suffix' => TRUE,
'ReturnSubscriptionArn' => false,
'DeliveryPolicy' => [],
'FilterPolicy ' => [],
'RawMessageDelivery' => 'false',
'RedrivePolicy' => null,
bash
$ php artisan SesTracking:setup