PHPackages                             maximaster/file-mailer-transport - 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. maximaster/file-mailer-transport

ActiveLibrary

maximaster/file-mailer-transport
================================

Saves served emails as files

0.0.1(5y ago)2121MITPHPPHP ^7.1

Since Mar 1Pushed 5y ago2 watchersCompare

[ Source](https://github.com/maximaster/file-mailer-transport)[ Packagist](https://packagist.org/packages/maximaster/file-mailer-transport)[ RSS](/packages/maximaster-file-mailer-transport/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (1)

File Mailer Transport
=====================

[](#file-mailer-transport)

Do you want to save your symfony/mailer emails as files (e.g. `.EML`)?

You've just found the right package!

Usage
-----

[](#usage)

```
composer require maximaster/file-mailer-transport
```

**services.yaml**

```
    Maximaster\FileMailerTransport\TransportFactory:
        arguments:
            $projectDir: '%kernel.project_dir%'

    mailer.default_transport:
        class: Symfony\Component\Mailer\Transport\TransportInterface
        factory: '@Maximaster\FileMailerTransport\TransportFactory'
        arguments:
            $dsn: '%env(MAILER_DSN)%'
```

**.env**

```
MAILER_DSN=file:///upload/emails/%Y/%m/%d/%T_@hash.eml
```

Options
-------

[](#options)

- new\_directory\_mode - with which rights new directory will be created
- hash\_algo - controls how `@hash` replacement is calculated
- path\_renderer - callback which is supposed to render a real file path from a path template

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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

1898d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ab1bbc009e4fa562e3c976d1d1be7b5a61e2199b28e43828632eb8c72f827631?d=identicon)[mlavrinenko](/maintainers/mlavrinenko)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/maximaster-file-mailer-transport/health.svg)

```
[![Health](https://phpackages.com/badges/maximaster-file-mailer-transport/health.svg)](https://phpackages.com/packages/maximaster-file-mailer-transport)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[symfony/mailer

Helps sending emails

1.6k368.1M955](/packages/symfony-mailer)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19462.3M1.3k](/packages/drupal-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6939.5M343](/packages/drupal-core-recommended)

PHPackages © 2026

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