PHPackages                             ton/email-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. [Testing &amp; Quality](/categories/testing)
4. /
5. ton/email-bundle

ActiveSymfony-bundle[Testing &amp; Quality](/categories/testing)

ton/email-bundle
================

Email bundle for test environment of Symfony2

v1.0.0(11y ago)03404MITPHPPHP &gt;=5.3.3

Since Sep 13Pushed 11y ago1 watchersCompare

[ Source](https://github.com/66Ton99/EmailBundle)[ Packagist](https://packagist.org/packages/ton/email-bundle)[ RSS](/packages/ton-email-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

EmailBundle
===========

[](#emailbundle)

Email bundle for test environment of Symfony2. It allows to store emails as \*.eml files and read them after that.

Setup
-----

[](#setup)

config\_test.yml

```
swiftmailer:
    transport: file
```

and 'swiftmailer.transport.file' instead of 'file' for SwiftmailerBundle V2.2.?

Memory transport
----------------

[](#memory-transport)

PhpUnitTest.php

```
use Ton\EmailBundle\EventListener\EmailListener;

    /**
     * @todo check multiple initialization
     */
    protected function registerEmailListener()
    {
        $container = $this->getContainer();
        $mailer = $container->get('mailer');
        $plugin = new EmailListener();
        $mailer->registerPlugin($plugin);
        return $plugin;
    }

    /**
     * @test
     */
    public function sendEmail()
    {
        $email = $this->registerEmailListener();
        $email->clean();

        // Send Email

        $this->assertCount(1, $email->getPreSendMessages());
        $email->getPreSendMessage(0);
    }
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

4312d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e3af9de92a6fcb7805de808d543c27589f2b7d7be8c0704dac1930a7fe1e029?d=identicon)[66ton99](/maintainers/66ton99)

---

Top Contributors

[![66Ton99](https://avatars.githubusercontent.com/u/383739?v=4)](https://github.com/66Ton99 "66Ton99 (3 commits)")

---

Tags

testemailcap

### Embed Badge

![Health badge](/badges/ton-email-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/ton-email-bundle/health.svg)](https://phpackages.com/packages/ton-email-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[zenstruck/browser

A fluent interface for your Symfony functional tests.

2262.6M43](/packages/zenstruck-browser)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[kirschbaum-development/mail-intercept

A test package for intercepting email sent from Laravel

112439.9k1](/packages/kirschbaum-development-mail-intercept)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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