PHPackages                             zrgisa/swiftmailerdbbundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. zrgisa/swiftmailerdbbundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

zrgisa/swiftmailerdbbundle
==========================

Database spooling for SwiftMailer

v1.0.6(10y ago)05.6kMITPHPPHP &gt;=5.3.3

Since Jul 29Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Zrgisa/WhiteOctoberSwiftMailerDBBundle)[ Packagist](https://packagist.org/packages/zrgisa/swiftmailerdbbundle)[ RSS](/packages/zrgisa-swiftmailerdbbundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (9)Used By (0)

This bundle faciliates using a database to spool messages to with SwiftMailer and Symfony2.

At present, it only works with the Doctrine EntityManager and entities managed with this.

Installation
============

[](#installation)

First of all, get the bundle into your project.

**Via Composer**:

1. Add the following line to your composer.json require section:

    { "require": { "whiteoctober/swiftmailerdbbundle": "1.0.1" } }
2. Download the bundle via Composer:

    $ php composer.phar update whiteoctober/swiftmailerdbbundle

**Via the deps files**:

1. Add the following lines in your `deps` file:

    \[WhiteOctoberSwiftMailerDBBundle\] git=git://github.com/whiteoctober/WhiteOctoberSwiftMailerDBBundle.git target=/bundles/WhiteOctober/SwiftMailerDBBundle

```
Run the vendors script:

    ./bin/vendors install

```

2. Add the WhiteOctober namespace to your autoloader:

    // app/autoload.php $loader-&gt;registerNamespaces(array( 'WhiteOctober' =&gt; **DIR**.'/../vendor/bundles', ));

Once you've got the bundle downloaded in your Symfony project, you'll need to add it to the kernel, and add some configuration parameters, so that it knows which entity you want to use.

1. Add the bundle to your application's kernel:

    // app/AppKernel.php public function registerBundles() { return array( // ... new WhiteOctober\\SwiftMailerDBBundle\\WhiteOctoberSwiftMailerDBBundle(), // ... ); }
2. Configure the `white_october_swift_mailer_db` service in your config.yml:

    white\_october\_swift\_mailer\_db: entity\_class: Full\\Path\\To\\Mail\\Entity

    Read below about how to construct this entity.
3. Tell SwiftMailer to use the database spooler:

    swiftmailer: spool: type: db

That's it for bundle installation and configuration.

Mail entity
===========

[](#mail-entity)

You will need to create an entity that can be persisted and that extends from the `EmailInterface` interface in the bundle. At the moment, the bundle expects a property to be available on your entity called 'status', since this field is queried.

Once you have your entity all set up, use the full namespaced path in your `config.yml`configuration as detailed above.

Optional: keeping sent messages in the database
===============================================

[](#optional-keeping-sent-messages-in-the-database)

By default, messages which were succesfully sent will be deleted from the database. It is possible to configure the bundle to keep those messages in your config.yml:

```
white_october_swift_mailer_db:
    keep_sent_messages: true

```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 79.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~151 days

Total

7

Last Release

3802d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6320756?v=4)[Sergej Grivcov](/maintainers/Zrgisa)[@Zrgisa](https://github.com/Zrgisa)

---

Top Contributors

[![richsage](https://avatars.githubusercontent.com/u/231551?v=4)](https://github.com/richsage "richsage (19 commits)")[![choonge](https://avatars.githubusercontent.com/u/334814?v=4)](https://github.com/choonge "choonge (1 commits)")[![falinsky](https://avatars.githubusercontent.com/u/859638?v=4)](https://github.com/falinsky "falinsky (1 commits)")[![garak](https://avatars.githubusercontent.com/u/179866?v=4)](https://github.com/garak "garak (1 commits)")[![lenar](https://avatars.githubusercontent.com/u/281544?v=4)](https://github.com/lenar "lenar (1 commits)")[![sam0delkin](https://avatars.githubusercontent.com/u/1104333?v=4)](https://github.com/sam0delkin "sam0delkin (1 commits)")

---

Tags

doctrineswiftmailerspool

### Embed Badge

![Health badge](/badges/zrgisa-swiftmailerdbbundle/health.svg)

```
[![Health](https://phpackages.com/badges/zrgisa-swiftmailerdbbundle/health.svg)](https://phpackages.com/packages/zrgisa-swiftmailerdbbundle)
```

###  Alternatives

[doctrine/common

PHP Doctrine Common project is a library that provides additional functionality that other Doctrine projects depend on such as better reflection support, proxies and much more.

5.8k371.8M1.3k](/packages/doctrine-common)[gedmo/doctrine-extensions

Doctrine behavioral extensions

4.1k122.6M410](/packages/gedmo-doctrine-extensions)[symfony/property-info

Extracts information about PHP class' properties using metadata of popular sources

2.2k270.7M1.1k](/packages/symfony-property-info)[beberlei/doctrineextensions

A set of extensions to Doctrine 2 that add support for additional query functions available in MySQL, Oracle, PostgreSQL and SQLite.

2.1k78.1M168](/packages/beberlei-doctrineextensions)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90441.8M243](/packages/ramsey-uuid-doctrine)[carbonphp/carbon-doctrine-types

Types to use Carbon in Doctrine

220244.9M9](/packages/carbonphp-carbon-doctrine-types)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
