PHPackages                             shepherdmat/emaillabs-symfony-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. shepherdmat/emaillabs-symfony-mailer

ActiveSymfony-bridge[Mail &amp; Notifications](/categories/mail)

shepherdmat/emaillabs-symfony-mailer
====================================

This bundle provides Emaillabs integration for Symfony Mailer

v0.1.0(4y ago)09MITPHPPHP &gt;=7.4

Since Nov 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/shepherdmat/emaillabs-symfony-mailer)[ Packagist](https://packagist.org/packages/shepherdmat/emaillabs-symfony-mailer)[ Docs](https://emaillabs.io)[ RSS](/packages/shepherdmat-emaillabs-symfony-mailer/feed)WikiDiscussions main Synced 3d ago

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

Emaillabs Symfony Mailer
========================

[](#emaillabs-symfony-mailer)

Provides [Emaillabs](https://emaillabs.io) integration for [Symfony Mailer](https://symfony.com/doc/current/mailer.html).

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

[](#installation)

The preferred method of installation is via \[Composer\]\[\]. Run the following command to install the package and add it as a requirement to your project's `composer.json`:

```
composer require shepherdmat/emaillabs-symfony-mailer
```

Usage
-----

[](#usage)

### Symfony project.

[](#symfony-project)

If you want to use it in your standard Symfony project, it's easy:

Add parameters to your local .env file:

```
# .env
MAILER_DSN=emaillabs://yourAppKey:yourSecretKey@yourActiveHostAccount.smtp
```

Update services.yaml

```
# config/services.yaml
services:
    Shepherdmat\Symfony\Mailer\Emaillabs\Transport\EmaillabsTransportFactory:
        tags: [ 'mailer.transport_factory' ]
```

Now you can follow example from official [Symfony Mailer](https://symfony.com/doc/current/mailer.html#creating-sending-messages) site.

### Standalone mailer.

[](#standalone-mailer)

If you want to send email using standard [SymfonyHttpClient](https://symfony.com/doc/current/http_client.html) as http interface:

```
// require_once __DIR__ . './vendor/autoload.php';

use Shepherdmat\Mailer\Emaillabs\Transport\EmaillabsApiTransport;
use Shepherdmat\Mailer\Emaillabs\Transport\EmaillabsTransportFactory;
use Symfony\Component\HttpClient\HttpClient;
use Symfony\Component\Mailer\Transport\Dsn;
use Symfony\Component\Mailer\Mailer;
use Symfony\Component\Mime\Email;

// Your active host account (https://panel.emaillabs.net.pl/pl/smtp).
$host = 'YOUR_ACCOUNT.smtp';

// Your App Key (https://panel.emaillabs.net.pl/pl/site/api).
$appKey = 'XXXXXXX';

// Your Secret Key (https://panel.emaillabs.net.pl/pl/site/api).
$appSecret = 'YYYYYYY';

$transportFactory = new EmaillabsTransportFactory(null, HttpClient::create());
$dsn = new Dsn(EmaillabsTransportFactory::SCHEME, $host, $appKey, $appSecret);

$mailer = new Mailer($transportFactory->create($dsn));

$message = (new Email())
    ->from('foo@bar.dev')
    ->to('bar@foo.dev')
    ->subject('Message title')
    ->html('HTML message content')
    ->text('Text message content')
    // Attachments are handled by default.
    ->attachFromPath('./path/to/attachment')
    ->embedFromPath('./path/to/attachment', 'embed_tag');

// If you want to pass some api parameters, use dedicated headers.
// (https://dev.emaillabs.io/#api-Send-new_sendmail)
$message->getHeaders()
    // Comma-separated list of tags.
    ->addTextHeader(EmaillabsApiTransport::HEADER_TAGS, 'tag1,tag2,tag3')
    // Custom template ID.
    ->addTextHeader(EmaillabsApiTransport::HEADER_TEMPLATE, 'template_id')
    // Custom return path.
    ->addTextHeader(EmaillabsApiTransport::HEADER_RETURN_PATH, 'return_path');

$mailer->send($message);
```

License
-------

[](#license)

This bundle is under the MIT license.
For the whole copyright, see the [LICENSE](LICENSE) file distributed with this source code.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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

1648d ago

### Community

Maintainers

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

---

Top Contributors

[![shepherdmat](https://avatars.githubusercontent.com/u/9432005?v=4)](https://github.com/shepherdmat "shepherdmat (2 commits)")

---

Tags

symfonymaileremaillabs

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/shepherdmat-emaillabs-symfony-mailer/health.svg)

```
[![Health](https://phpackages.com/badges/shepherdmat-emaillabs-symfony-mailer/health.svg)](https://phpackages.com/packages/shepherdmat-emaillabs-symfony-mailer)
```

###  Alternatives

[sylius/mailer-bundle

Mailers and e-mail template management for Symfony projects.

728.1M77](/packages/sylius-mailer-bundle)[dotkernel/dot-mail

Dotkernel mail component based on symfony mailer

1140.0k5](/packages/dotkernel-dot-mail)[yzh52521/think-mail

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

745.0k](/packages/yzh52521-think-mail)[hafael/azure-mailer-driver

Supercharge your Laravel or Symfony app with Microsoft Azure Communication Services (ACS)! Effortlessly add email, chat, voice, video, and telephony-over-IP for next-level communication. 🚀

14109.2k](/packages/hafael-azure-mailer-driver)

PHPackages © 2026

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