Download the PHP package cgonser/swiftmailer-database-s3-spool-bundle without Composer
On this page you can find all versions of the php package cgonser/swiftmailer-database-s3-spool-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cgonser/swiftmailer-database-s3-spool-bundle
More information about cgonser/swiftmailer-database-s3-spool-bundle
Files in cgonser/swiftmailer-database-s3-spool-bundle
Package swiftmailer-database-s3-spool-bundle
Short Description A symfony bundle that enables Swift Mailer to spool messages from a database and store message files on Amazon S3
License MIT
Informations about the package swiftmailer-database-s3-spool-bundle
Swift Mailer Database S3 Spool
A Symfony bundle that enables Swift Mailer to spool messages from a database and store message files on an Amazon S3 bucket.
It requires the AWS PHP SDK and relies on Doctrine for data persistency.
Installation
This bundle can be installed via Composer by requiring cgonser/swiftmailer-database-s3-spool-bundle package
in your project's composer.json:
Then, enable the bundle by adding it to the list of registered bundles
in the app/AppKernel.php
file of your project:
Configuration
Please remember to first configure the AWS SDK accordingly. Once it's properly configured, you can place this bundle configuration in app/config/config.yml
file.
You can optionally include specific credentials configurations for the s3 client, as follows:
Still in app/config/config.yml
, enable the services and change the swift mailer spool configuration:
You can also provide specific AWS credentials for this bucket, if you want to:
After finishing the configuration, you will need to update your database schema to create the entity necessary to store the spooler queue.
Mail Queue Entity
By default, the mail queue will be stored in a table named cgonser_mail_queue, but you can override the default entity. To do so, you will need to create a new entity with the same structure of the default one (which you can find inside the package at Entity/MailQueue.php
) and change its name and/or definition.
After that, you will need to inform the bundle about the new entity, using the following configuration in app/config/config.yml
:
Keep in mind that this bundle relies on the default entity structure and modifying that may break it.
All versions of swiftmailer-database-s3-spool-bundle with dependencies
doctrine/orm Version ^2.3
symfony/swiftmailer-bundle Version ~2.3
aws/aws-sdk-php Version ^3.0