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 1w 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 54% 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

4265d 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

[mockery/mockery

Mockery is a simple yet flexible PHP mock object framework

10.7k497.0M23.6k](/packages/mockery-mockery)[hamcrest/hamcrest-php

This is the PHP port of Hamcrest Matchers

7.1k484.1M109](/packages/hamcrest-hamcrest-php)[zenstruck/foundry

A model factory library for creating expressive, auto-completable, on-demand dev/test fixtures with Symfony and Doctrine.

78311.9M97](/packages/zenstruck-foundry)[zenstruck/messenger-test

Assertions and helpers for testing your symfony/messenger queues.

2774.8M13](/packages/zenstruck-messenger-test)[zenstruck/browser

A fluent interface for your Symfony functional tests.

2272.2M21](/packages/zenstruck-browser)[friends-of-behat/mink-extension

Mink extension for Behat

14034.2M467](/packages/friends-of-behat-mink-extension)

PHPackages © 2026

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