PHPackages                             paneedesign/database-swiftmailer-bundle - 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. paneedesign/database-swiftmailer-bundle

ActiveLibrary[Database &amp; ORM](/categories/database)

paneedesign/database-swiftmailer-bundle
=======================================

Database Spool Bundle for SwiftMailer and Symfony 3

v2.0.6(6y ago)311.2k↓30.3%2MITPHPPHP ^7.2.0

Since Feb 25Pushed 3y ago4 watchersCompare

[ Source](https://github.com/paneedesign/DatabaseSwiftMailerBundle)[ Packagist](https://packagist.org/packages/paneedesign/database-swiftmailer-bundle)[ Docs](https://github.com/paneedesign/DatabaseSwiftMailerBundle)[ RSS](/packages/paneedesign-database-swiftmailer-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (5)Versions (12)Used By (0)

DatabaseSwiftMailerBundle
=========================

[](#databaseswiftmailerbundle)

[![Latest Stable Version](https://camo.githubusercontent.com/daf389218023a0cadf5e3a9abbf19726cd33855722386b504e88f9063dd3d6b0/68747470733a2f2f706f7365722e707567782e6f72672f70616e656564657369676e2f73746f726167652d62756e646c652f76)](//packagist.org/packages/paneedesign/storage-bundle) [![Total Downloads](https://camo.githubusercontent.com/e9de29dc472bd405a5820e5ef64800432515dc15796ab01f54835713a5d6f85b/68747470733a2f2f706f7365722e707567782e6f72672f70616e656564657369676e2f73746f726167652d62756e646c652f646f776e6c6f616473)](//packagist.org/packages/paneedesign/storage-bundle) [![Latest Unstable Version](https://camo.githubusercontent.com/5cd91bbd90590afcef41a979a5e514298a76ad79896d502a24b5d70a70d83418/68747470733a2f2f706f7365722e707567782e6f72672f70616e656564657369676e2f73746f726167652d62756e646c652f762f756e737461626c65)](//packagist.org/packages/paneedesign/storage-bundle) [![License](https://camo.githubusercontent.com/db279af40b74940f67d0c89035eda5b27b00c030eb8052d46f498f7ae9d3110b/68747470733a2f2f706f7365722e707567782e6f72672f70616e656564657369676e2f73746f726167652d62756e646c652f6c6963656e7365)](//packagist.org/packages/paneedesign/storage-bundle) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/7f405788e6c9c27c68acbccf94f23111c7d7b4cfbc95c80b30f300252f1e395c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6465787465727669702f446174616261736553776966744d61696c657242756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/dextervip/DatabaseSwiftMailerBundle/?branch=master)[![Build Status](https://camo.githubusercontent.com/b47c1a4957001bc32b2283f8aac985f287459d57a5f810290481f12469382bf1/68747470733a2f2f7472617669732d63692e6f72672f70616e656564657369676e2f446174616261736553776966744d61696c657242756e646c652e7376673f6272616e63683d666561747572652532467366342d7265666163746f72696e67)](https://travis-ci.org/paneedesign/DatabaseSwiftMailerBundle)

Introduction
------------

[](#introduction)

This bundle add a database driven swiftmailer spool to your Symfony 3 project. It requires Symfony 3.0+ and usage of entities with Doctrine ORM.

### Features

[](#features)

- Auto Retrying: set a maximum number of retries that spool will try to send in case of failure
- Dashboard to list the email spool and perform some actions
- Retry sending an email
- Cancelling an email sending
- Resending an email

Installing
----------

[](#installing)

### Add composer

[](#add-composer)

Add the dependency to your composer.json

```
    "require": {
        ...
        "paneedesign/database-swiftmailer-bundle" : "dev-master"
    }
```

### Add bundle class in kernel

[](#add-bundle-class-in-kernel)

Register the bundle class and its dependencies in your AppKernel.php

```
    public function registerBundles()
    {
        $bundles = array(
        ...
        new PaneeDesign\DatabaseSwiftMailerBundle\PedDatabaseSwiftMailerBundle(),
        ...
        );
    }
```

### Add routes

[](#add-routes)

If you want to have a spool dashboard, add the following routes.

```
ped_database_swift_mailer:
    resource: "@PedDatabaseSwiftMailerBundle/Controller/"
    type:     annotation
    prefix:   /
```

Configuring
-----------

[](#configuring)

### Update database

[](#update-database)

Update your database schema to create the necessary entities.

```
$ php bin/console doctrine:schema:update --force
```

### Update swiftmailer config

[](#update-swiftmailer-config)

Change your spool type from memory to db in your config.yml

```
    spool:     { type: db }
```

### Overriding default templates

[](#overriding-default-templates)

You may want to override the default template to have the look and feel of your application. You can do it following the official Symfony documentation:

Running
-------

[](#running)

To send emails that are in the database spool, just run the following command:

```
$ php bin/console swiftmailer:spool:send
```

You may add a cron job entry to run it periodically.

You can check the spool status with all emails at http://your\_project\_url/email-spool

ToDo List
---------

[](#todo-list)

- Filter emails
- Insert error message once it reaches the maximum of retries
- Last run date
- Count total sent

License
-------

[](#license)

MIT

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 51.4% 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 ~164 days

Recently: every ~304 days

Total

9

Last Release

1322d ago

Major Versions

v1.0.0 → v2.0.52019-06-03

v1.1.0 → v2.0.42019-06-04

v2.0.6 → v3.0.0-alpha.12020-02-13

PHP version history (2 changes)v1.0.0PHP &gt;=7.0

v2.0.4PHP ^7.2.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/f1ce8f43ccab464d26c061741e90b70d2d5132f57ceb617ba345e77d65d92aa3?d=identicon)[pane-e-design](/maintainers/pane-e-design)

---

Top Contributors

[![LuigiCardamone](https://avatars.githubusercontent.com/u/7023072?v=4)](https://github.com/LuigiCardamone "LuigiCardamone (19 commits)")[![dextervip](https://avatars.githubusercontent.com/u/964836?v=4)](https://github.com/dextervip "dextervip (16 commits)")[![redaLaanait](https://avatars.githubusercontent.com/u/7085815?v=4)](https://github.com/redaLaanait "redaLaanait (2 commits)")

---

Tags

symfonybundledatabaseswiftmailerped

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/paneedesign-database-swiftmailer-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/paneedesign-database-swiftmailer-bundle/health.svg)](https://phpackages.com/packages/paneedesign-database-swiftmailer-bundle)
```

###  Alternatives

[sonata-project/doctrine-orm-admin-bundle

Integrate Doctrine ORM into the SonataAdminBundle

46117.7M155](/packages/sonata-project-doctrine-orm-admin-bundle)[kreait/firebase-bundle

Symfony Bundle for the Firebase Admin SDK

1534.7M2](/packages/kreait-firebase-bundle)[neo4j/neo4j-bundle

Symfony integration for Neo4j

8272.1k](/packages/neo4j-neo4j-bundle)

PHPackages © 2026

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