PHPackages                             aimeos/ai-swiftmailer - 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. aimeos/ai-swiftmailer

ActiveAimeos-extension[Mail &amp; Notifications](/categories/mail)

aimeos/ai-swiftmailer
=====================

SwiftMailer adapter for Aimeos web shops and e-commerce solutions

2021.10.2(4y ago)20168.3k↑183.3%55LGPL-3.0-or-laterPHPPHP ~7.1||~8.0

Since Mar 11Pushed 4y ago2 watchersCompare

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

READMEChangelogDependencies (3)Versions (79)Used By (5)

[ ![Aimeos logo](https://camo.githubusercontent.com/e55b7a8426f14ba6040d604746b03b7e096af41ede8fead0ea817cbb8d60f998/68747470733a2f2f61696d656f732e6f72672f66696c6561646d696e2f74656d706c6174652f69636f6e732f6c6f676f2e706e67 "Aimeos")](https://aimeos.org/)Aimeos Swiftmailer adapter
==========================

[](#aimeos-swiftmailer-adapter)

[![Build Status](https://camo.githubusercontent.com/7ed0769e9fb2800646a08550af5e0c4d56750418c0bac46c30d11e455af113b4/68747470733a2f2f636972636c6563692e636f6d2f67682f61696d656f732f61692d73776966746d61696c65722e7376673f7374796c653d736869656c64)](https://circleci.com/gh/aimeos/ai-swiftmailer)[![Coverage Status](https://camo.githubusercontent.com/990ae6334e13fc908c810763ca62762923cd4e14a8edf4c1b19b928ba3893b87/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f61696d656f732f61692d73776966746d61696c65722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/r/aimeos/ai-swiftmailer?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/435bf0cb61568bcf1e550aa4c50702895d204bca2b35d9053a49609c288e4540/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f61696d656f732f61692d73776966746d61696c65722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/aimeos/ai-swiftmailer/?branch=master)[![License](https://camo.githubusercontent.com/80341c5543351d4e90024e01d3c4452e1e42e54009019eec6e421a6923cedbdd/68747470733a2f2f706f7365722e707567782e6f72672f61696d656f732f61692d73776966746d61696c65722f6c6963656e73652e737667)](https://packagist.org/packages/aimeos/ai-swiftmailer)

The Aimeos web shop components can integrate into almost any PHP application and uses the infrastructure of the application for building URLs, caching content, configuration settings, logging messages, session handling, sending e-mails or handling translations.

The ai-swiftmailer extension integrates the PHP Swiftmailer library for handling e-mails into Aimeos. It's required if your application uses Swiftmailer for sending e-mails and offers access to a Swiftmailer object that can be used together with this extension.

Table of content
----------------

[](#table-of-content)

- [Installation](#installation)
- [Setup](#setup)
- [License](#license)
- [Links](#links)

Installation
------------

[](#installation)

To allow the Aimeos web shop components accessing the e-mail infrastructure of your own framework or application, you have to install the adapter first. As every Aimeos extension, the easiest way is to install it via [composer](https://getcomposer.org/). If you don't have composer installed yet, you can execute this string on the command line to download it:

```
php -r "readfile('https://getcomposer.org/installer');" | php -- --filename=composer

```

Add the ai-swiftmailer extension to the "require" section of your `composer.json` file:

```
"require": [
    "aimeos/ai-swiftmailer": "dev-master",
    ...
],

```

If you don't want to use the latest version, you can also install any release. The list of releases is available at [Packagist](https://packagist.org/packages/aimeos/ai-swiftmailer). Afterwards you only need to execute the composer update command on the command line:

```
composer update

```

Setup
-----

[](#setup)

Now add the Swiftmailer object to the Aimeos context, which you have to create to get the Aimeos components running:

```
// $app is an object that can create the Swiftmailer object
$closure = function() use ( $app ) {
    return $app->getSwiftMailer();
};

$mail = new MW_Mail_Swift( $closure );
$context->setMail( $mail );

```

Initializing and creating a Swiftmailer object is a resource intensive task. Therefore, it's best to avoid passing the Swiftmailer object directly to the `MW_Mail_Swift` constructor (which is also possible) but to use a closure that can create the object on demand.

License
-------

[](#license)

The Aimeos ai-swiftmailer extension is licensed under the terms of the LGPLv3 license and is available for free.

Links
-----

[](#links)

- [Web site](https://aimeos.org/)
- [Documentation](https://aimeos.org/docs)
- [Help](https://aimeos.org/help)
- [Issue tracker](https://github.com/aimeos/ai-swiftmailer/issues)
- [Source code](https://github.com/aimeos/ai-swiftmailer)

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 93.7% 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 ~33 days

Recently: every ~50 days

Total

76

Last Release

1578d ago

Major Versions

2019.10.1 → 2020.01.12020-01-07

2020.10.1 → 2021.01.x-dev2021-01-05

2020.10.2 → 2021.04.12021-04-06

2019.10.x-dev → 2021.07.x-dev2021-07-06

2021.10.1 → 2022.01.x-dev2022-01-06

PHP version history (3 changes)2016.01.1PHP &gt;=5.3.3

2020.01.1PHP ~7.1

2020.10.2PHP ~7.1||~8.0

### Community

Maintainers

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

---

Top Contributors

[![aimeos](https://avatars.githubusercontent.com/u/8647429?v=4)](https://github.com/aimeos "aimeos (104 commits)")[![AntonLinderer](https://avatars.githubusercontent.com/u/31562651?v=4)](https://github.com/AntonLinderer "AntonLinderer (4 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (3 commits)")

---

Tags

mailadaptershope-commerceaimeosswiftmailer

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/aimeos-ai-swiftmailer/health.svg)

```
[![Health](https://phpackages.com/badges/aimeos-ai-swiftmailer/health.svg)](https://phpackages.com/packages/aimeos-ai-swiftmailer)
```

###  Alternatives

[aimeos/aimeos-laravel

Cloud native, API first Laravel eCommerce package with integrated AI for ultra-fast online shops, marketplaces and complex B2B projects

8.6k214.7k3](/packages/aimeos-aimeos-laravel)[aimeos/ai-laravel

Laravel adapter for Aimeos e-commerce integration

971228.8k2](/packages/aimeos-ai-laravel)[aimeos/ai-typo3

TYPO3 adapter for Aimeos e-commerce integration

95392.1k1](/packages/aimeos-ai-typo3)[yuan1994/tp-mailer

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

812.0k1](/packages/yuan1994-tp-mailer)[aimeos/ai-symfony

Symfony adapter for Aimeos e-commerce integration

1012.0k3](/packages/aimeos-ai-symfony)[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)

PHPackages © 2026

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