PHPackages                             butterfly/adapter-swift-mailer - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. butterfly/adapter-swift-mailer

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

butterfly/adapter-swift-mailer
==============================

Butterfly PHP. Swift Mailer Adapter

0.3.2(5y ago)01.0kMITPHPPHP &gt;=7.0.0

Since Apr 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/butterfly-project/adapter-swift-mailer)[ Packagist](https://packagist.org/packages/butterfly/adapter-swift-mailer)[ RSS](/packages/butterfly-adapter-swift-mailer/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (7)Used By (0)

adapter-swift-mailer
====================

[](#adapter-swift-mailer)

Sending emails
--------------

[](#sending-emails)

get('bfy\_adapter.swift\_mailer'); $mailer-&gt;sendPrepared('hello.world', array( 'name' =&gt; 'World', )); $mailer-&gt;flush(); Base template ------------- \\#base.xml.twig Configuration
-------------

[](#configuration)

bfy\_adapter.twig.template\_paths:

- '%app.dir.root%/view/'

bfy\_adapter.swift\_mailer.prepared\_mails: hello.world: transport: 'bfy\_adapter.swift\_mailer.transport.mailtrap' content\_type: 'text/html' template: 'hello\_world.html.twig' from: {'': 'Robot'} to: ''

services:

bfy\_adapter.swift\_mailer: class: 'Butterfly\\Adapter\\SwiftMailer\\Mailer' arguments: - '%bfy\_adapter.swift\_mailer.prepared\_mails%' - '#bfy\_adapter.swift\_mailer.transports' - '#bfy\_adapter.swift\_mailer.spools' - '@bfy\_adapter.twig'

bfy\_adapter.swift\_mailer.transport.mailtrap: factoryStaticMethod: \['Swift\_Mailer', 'newInstance'\] arguments: \['@bfy\_adapter.swift\_mailer.transport\_handler.mailtrap'\] tags: 'bfy\_adapter.swift\_mailer.transports'

bfy\_adapter.swift\_mailer.transport\_handler.mailtrap: class: 'Swift\_SmtpTransport' calls: - \['setHost', \['mailtrap.io'\]\] - \['setPort', \['2525'\]\] - \['setUsername', \['22233f3bd7436f471'\], true\] - \['setPassword', \['47750b24d980a8'\], true\] - \['setEncryption', \['tls'\], true\] - \['setAuthMode', \['cram-md5'\], true\]

bfy\_adapter.swift\_mailer.transport.mailtrap.spool: factoryStaticMethod: \['Swift\_Mailer', 'newInstance'\] arguments: \['@bfy\_adapter.swift\_mailer.transport\_handler.mailtrap.spool'\] tags: 'bfy\_adapter.swift\_mailer.spools'

bfy\_adapter.swift\_mailer.transport\_handler.mailtrap.spool: factoryStaticMethod: \['Swift\_SpoolTransport', 'newInstance'\] arguments: \['@bfy\_adapter.swift\_mailer.spool.mailtrap'\]

bfy\_adapter.swift\_mailer.spool.mailtrap: class: 'Swift\_FileSpool' arguments: \['%app.dir.root%/var'\]

bfy\_adapter.twig.environment: class: 'Twig\_Environment' arguments: \[@bfy\_adapter.twig.loader, %bfy\_adapter.twig.configuration%\] calls: - \['setExtensions', \[#bfy\_adapter.twig.extensions/toArray\]\]

###  Health Score

26

—

LowBetter than 46% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Every ~374 days

Total

5

Last Release

2140d ago

PHP version history (2 changes)0.1.1PHP &gt;=5.3.3

0.3.1PHP &gt;=7.0.0

### Community

Maintainers

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

---

Top Contributors

[![AgreGAD](https://avatars.githubusercontent.com/u/5005563?v=4)](https://github.com/AgreGAD "AgreGAD (17 commits)")

---

Tags

mailadapterSwift\_Mailer

### Embed Badge

![Health badge](/badges/butterfly-adapter-swift-mailer/health.svg)

```
[![Health](https://phpackages.com/badges/butterfly-adapter-swift-mailer/health.svg)](https://phpackages.com/packages/butterfly-adapter-swift-mailer)
```

###  Alternatives

[aimeos/ai-swiftmailer

SwiftMailer adapter for Aimeos web shops and e-commerce solutions

20168.3k5](/packages/aimeos-ai-swiftmailer)[hyperf-ext/mail

The Hyperf Mail package.

1849.9k1](/packages/hyperf-ext-mail)[yuan1994/tp-mailer

A powerful and beautiful php mailer for All of ThinkPHP and Other PHP Frameworks based SwiftMailer

892.0k1](/packages/yuan1994-tp-mailer)[goetas/to-swift-mime-parser

Parse a generic mail stream, and convert it to a SwiftMailer Message

1244.4k2](/packages/goetas-to-swift-mime-parser)[clarification/sendgrid-laravel-driver

Sendgrid mail driver for Laravel

1131.0k](/packages/clarification-sendgrid-laravel-driver)

PHPackages © 2026

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