Download the PHP package davidneal/laravel-ses-tracker without Composer
On this page you can find all versions of the php package davidneal/laravel-ses-tracker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download davidneal/laravel-ses-tracker
More information about davidneal/laravel-ses-tracker
Files in davidneal/laravel-ses-tracker
Package laravel-ses-tracker
Short Description Allows you to track opens, deliveries, bounces, complaints and clicked links when sending emails through Laravel and Amazon SES
License MIT
Informations about the package laravel-ses-tracker
laravel-ses-tracker
A Laravel 6.0+ Package that allows you to get simple sending statistics for emails you send through SES, including deliveries, opens, bounces, complaints and link tracking.
This is a revamped version of oliveready7/laravel-ses package, updated to support Laravel v6.0+ and some bug fixes. Primarily I revamped this package so it's suitable to be used in my company project with Laravel v6.0+.
Here are the differences between original package and this package:
- All the namespace are changed to
DavidNeal/LaravelSesTracker
- Service provider is now
LaravelSesTrackerServiceProvider
- All the tables name are prefixed with
laravel_ses_tracker
instead oflaravel_ses
- New unsubscribe column in
sent_emails
(TODO) - Config file is now
config/laravel-ses-tracker.php
instead ofconfig/laravelses.php
- Routes are unchanged, they are still prefixed with
/laravel-ses
Apart from the above listed differences, there are not much more difference between this package and oliveready7's package.
Install via composer
Add to composer.json
Make sure your app/config/services.php has SES values set
Important to note that if you're using an IAM, it needs access to SNS (for deliveries, bounces and complaints) as well as SES
Make sure your mail driver located in app/config/mail.php is set to 'ses'
Publish public assets
Migrate the package's database tables
Optionally you can publish the package's config (laravel-ses-tracker.php)
Config Options
- aws_sns_validator - whether the package uses AWS's SNS validator for inbound SNS requests. Default = false
Run command in production to setup Amazon email notifications to track bounces, complaints and deliveries. Make sure in your configuration your app URL is set correctly.
If your application uses the http protocol instead of https add the --http flag to this command
Usage
To send an email with all tracking enabled
All tracking allows you to track opens, bounces, deliveries, complaints and links
You can, of course, disable and enable all the tracking options
The setEmailId option gives you the chance to group emails via a foreign id, so you can get the results for a specific email of your own.
You can manipulate the results manually by querying the database. Or you can use functions that come with the package.
Send count = number of emails that were attempted
Deliveries = number of emails that were delivered
Opens = number of emails that were opened
Complaints = number of people that put email into spam
Click throughs = number of people that clicked at least one link in your email
Link Popularity = number of unique clicks on each link in the email, ordered by the most clicked.
All versions of laravel-ses-tracker with dependencies
aws/aws-sdk-php Version ^3.148
guzzlehttp/guzzle Version ~6.0
paquettg/php-html-parser Version ^2.2
aws/aws-php-sns-message-validator Version ^1.4
laminas/laminas-diactoros Version ^2.2