Download the PHP package luchavez/aws-ses-bounce without Composer

On this page you can find all versions of the php package luchavez/aws-ses-bounce. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package aws-ses-bounce

AWS SES Bounce for Laravel 8|9|10

Latest Version on Packagist Total Downloads GitHub Repo stars Discord Twitter Follow

Using AWS Simple Email Service (SES) for sending emails and newsletters is very common in Laravel apps nowadays. AWS SES configurations for Laravel is easy to follow as well.

The problem now is the maintenance part of sending these emails. Sending emails to unverified addresses can cause bounces whereas sending too many emails can cause complaints. If these bounces and complaints are left unchecked, it may cause the reputation of the sender to be damaged.

According to this documentation, if the bounce or complaint rates are too high, AWS might place the account under review or pause the account's ability to send email.

The aim of this package, luchavez/aws-ses-bounce, is to monitor the email bounces, complaints, and successful deliveries. This package records the recipient email addresses and their bounces, complaints, and deliveries.

One cool feature of this package is the automatic blocking. When a set amount of bounces or complaints is reached, the email address causing that will be immediately blocked. Another cool feature would be the automatic removal of blocked email address from to, cc, and bcc recipients during email sending.

Here's the entity relationship diagram (ERD) of this package:

Want to contribute? Visit contributing.md to see a todo list.

Installation

Via Composer

Setting Up

  1. Run php artisan migrate to create the tables.

  2. Add these variables to .env file if you want to override the default values of the package's config.
Variable Name Default Value Description
ASB_API_MIDDLEWARE [] This will be used by all API routes within the package except the webhooks.
ASB_EMAIL_TEST_API_ENABLED true This route is used for sending test emails.
ASB_DUMP_URL config('app.url') This route will be used for dumping data. Useful for debugging.
ASB_DUMP_ENABLED false Decides whether the dump data route will be accessible or not.
ASB_VALIDATE_SIGNATURE false Decides whether to enforce signed routes.
ASB_MAX_BOUNCE_COUNT 3 Maximum bounce count an email can get before being blocked.
ASB_SOFT_DELETE_NOTIFICATIONS false Decides whether to soft-delete SES Feedback Notifications.
ASB_DELIVERIES_MAX_AGE_IN_DAYS 7 Maximum age in days of Delivery Notification.

Usage

AWS SES Bounce Service

The package provides a service called helper functions:

  1. awsSesBounce()
  2. aws_ses_bounce()

Here's the list of its available methods.

Method Name Return Type Description
getBlockedEmails Collection gets the list of blocked emails from cache
getApiMiddleware array gets the middleware for other API routes
filterBouncedEmails array separates rejected email address from accepted ones
isEmailTestApiEnabled bool checks if send test email API is enabled
sendTestEmail void sends test email to to, cc, and bcc recipients
getMaxBounceCount int gets maximum bounce count before automatic block
block void blocks an email address manually
unblock void unblocks an email address manually
getBounceReasons Collection gets list of possible bounce reasons
shouldSoftDeleteNotifications bool check whether to soft-delete or force-delete notifications
getDeliveryNotificationMaxAgeInDays int get maximum age in days for delivery notifications

GenerateAwsSesBounceSignedURLCommand Artisan Command

To be able to receive AWS SES feedbacks via AWS SNS Topics, you must generate first the endpoints by running:

You'll be getting something like this:

Submit these endpoints to assigned DevOps personnel so they can set it up on AWS Console.

Routes

Note: If APP_ENV is equal to production, api/aws-ses/test and api/aws-ses/dump routes will be disabled.

Resources

Change log

Please see the changelog for more information on what has changed recently.

Testing

To send test emails, you can use the /api/aws-ses/test route. Add to, cc, and bcc recipients - can be array or just a single value.

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

Please see the license file for more information.


All versions of aws-ses-bounce with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
illuminate/support Version ~8|~9|~10
aws/aws-sdk-php Version ^3.231
luchavez/api-sdk-kit Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package luchavez/aws-ses-bounce contains the following files

Loading the files please wait ....