2017 © Pedro Peláez
 

symfony-bundle swiftmailer-database-s3-spool-bundle

A symfony bundle that enables Swift Mailer to spool messages from a database and store message files on Amazon S3

image

cgonser/swiftmailer-database-s3-spool-bundle

A symfony bundle that enables Swift Mailer to spool messages from a database and store message files on Amazon S3

  • Sunday, June 4, 2017
  • by cgonser
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1,494 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 15 Versions
  • 8 % Grown

The README.md

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., (*1)

It requires the AWS PHP SDK and relies on Doctrine for data persistency., (*2)

Installation

This bundle can be installed via Composer by requiring cgonser/swiftmailer-database-s3-spool-bundle package in your project's composer.json:, (*3)

{
    "require": {
        "cgonser/swiftmailer-database-s3-spool-bundle": "dev-master"
    }
}

Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:, (*4)

<?php
// app/AppKernel.php

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...

            new Cgonser\SwiftMailerDatabaseS3SpoolBundle\CgonserSwiftMailerDatabaseS3SpoolBundle(),
        ];
    }
}

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., (*5)

cgonser_swift_mailer_database_s3_spool:
    s3:
        bucket: "<TARGET BUCKET>"
        region: "<S3 REGION>"
        folder: "<TARGET FOLDER>" (optional)

You can optionally include specific credentials configurations for the s3 client, as follows:, (*6)

cgonser_swift_mailer_database_s3_spool:
    s3:
        credentials:
            key: "<AWS_ACCESS_KEY_ID>"
            secret: "<AWS_SECRET_ACCESS_KEY>"

Still in app/config/config.yml, enable the services and change the swift mailer spool configuration:, (*7)

imports:
    // ...
    - { resource: "@CgonserSwiftMailerDatabaseS3SpoolBundle/Resources/config/services.yml" }
swiftmailer:
    // ...
    spool: { type: db_s3 }

You can also provide specific AWS credentials for this bucket, if you want to:, (*8)

cgonser_swift_mailer_database_s3_spool:
    s3:
        bucket: "<TARGET BUCKET>"
        region: "<BUCKET REGION>"
        key: "<YOUR AWS KEY>"
        secret: "<YOUR AWS SECRET>"

After finishing the configuration, you will need to update your database schema to create the entity necessary to store the spooler queue., (*9)

php bin/console doctrine:schema:update

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., (*10)

After that, you will need to inform the bundle about the new entity, using the following configuration in app/config/config.yml:, (*11)

cgonser_swift_mailer_database_s3_spool:
    entity_class: "<YOUR NEW ENTITY>" (e.g.: \AppBundle\Entity\MailQueue)

Keep in mind that this bundle relies on the default entity structure and modifying that may break it., (*12)

The Versions

04/06 2017

dev-master

9999999-dev

A symfony bundle that enables Swift Mailer to spool messages from a database and store message files on Amazon S3

  Sources   Download

MIT

The Requires

 

by Carlos Gonser

database swiftmailer s3 spool swift mailer

04/06 2017

1.0.13

1.0.13.0

A symfony bundle that enables Swift Mailer to spool messages from a database and store message files on Amazon S3

  Sources   Download

MIT

The Requires

 

by Carlos Gonser

database swiftmailer s3 spool swift mailer

25/05 2017

1.0.12

1.0.12.0

A symfony bundle that enables Swift Mailer to spool messages from a database and store message files on Amazon S3

  Sources   Download

MIT

The Requires

 

by Carlos Gonser

database swiftmailer s3 spool swift mailer

21/03 2017

1.0.11

1.0.11.0

A symfony bundle that enables Swift Mailer to spool messages from a database and store message files on Amazon S3

  Sources   Download

MIT

The Requires

 

by Carlos Gonser

database swiftmailer s3 spool swift mailer

13/03 2017

1.0.10

1.0.10.0

A symfony bundle that enables Swift Mailer to spool messages from a database and store message files on Amazon S3

  Sources   Download

MIT

The Requires

 

by Carlos Gonser

database swiftmailer s3 spool swift mailer

13/03 2017

1.0.9

1.0.9.0

A symfony bundle that enables Swift Mailer to spool messages from a database and store message files on Amazon S3

  Sources   Download

MIT

The Requires

 

by Carlos Gonser

database swiftmailer s3 spool swift mailer

24/01 2017

1.0.8

1.0.8.0

A symfony bundle that enables Swift Mailer to spool messages from a database and store message files on Amazon S3

  Sources   Download

MIT

The Requires

 

by Carlos Gonser

database swiftmailer s3 spool swift mailer

17/01 2017

1.0.7

1.0.7.0

A symfony bundle that enables Swift Mailer to spool messages from a database and store message files on Amazon S3

  Sources   Download

MIT

The Requires

 

by Carlos Gonser

database swiftmailer s3 spool swift mailer

16/01 2017

1.0.6

1.0.6.0

A symfony bundle that enables Swift Mailer to spool messages from a database and store message files on Amazon S3

  Sources   Download

MIT

The Requires

 

by Carlos Gonser

database swiftmailer s3 spool swift mailer

28/12 2016

1.0.5

1.0.5.0

A symfony bundle that enables Swift Mailer to spool messages from a database and store message files on Amazon S3

  Sources   Download

MIT

The Requires

 

by Carlos Gonser

database swiftmailer s3 spool swift mailer

28/12 2016

1.0.3

1.0.3.0

A symfony bundle that enables Swift Mailer to spool messages from a database and store message files on Amazon S3

  Sources   Download

MIT

The Requires

 

by Carlos Gonser

database swiftmailer s3 spool swift mailer

28/12 2016

1.0.4

1.0.4.0

A symfony bundle that enables Swift Mailer to spool messages from a database and store message files on Amazon S3

  Sources   Download

MIT

The Requires

 

by Carlos Gonser

database swiftmailer s3 spool swift mailer

27/12 2016

1.0.2

1.0.2.0

A symfony bundle that enables Swift Mailer to spool messages from a database and store message files on Amazon S3

  Sources   Download

MIT

The Requires

 

by Carlos Gonser

database swiftmailer s3 spool swift mailer

27/12 2016

1.0.0

1.0.0.0

A symfony bundle that enables Swift Mailer to spool messages from a database and store message files on Amazon S3

  Sources   Download

MIT

The Requires

 

by Carlos Gonser

database swiftmailer s3 spool swift mailer

27/12 2016

1.0.1

1.0.1.0

A symfony bundle that enables Swift Mailer to spool messages from a database and store message files on Amazon S3

  Sources   Download

MIT

The Requires

 

by Carlos Gonser

database swiftmailer s3 spool swift mailer