PHPackages                             pandawan-technology/email-transformer - 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. pandawan-technology/email-transformer

ActiveLibrary

pandawan-technology/email-transformer
=====================================

Normalize email addresses to be used with symfony/mailer library

1.0.2(6y ago)0742MITPHPCI failing

Since Jun 6Pushed 6y ago1 watchersCompare

[ Source](https://github.com/PandawanTechnology/EmailTransformer)[ Packagist](https://packagist.org/packages/pandawan-technology/email-transformer)[ RSS](/packages/pandawan-technology-email-transformer/feed)WikiDiscussions master Synced 2mo ago

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

PandawanTechnology EmailTransformer
===================================

[](#pandawantechnology-emailtransformer)

When using the new [symfony/mailer](https://symfony.com/mailer) component, especially when you are migrating from [SwiftMailer](https://swiftmailer.symfony.com/), it might be tedious to reorganize email addresses formatting. This library intends to help developpers with formatting them in the expected way.

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

[](#installation)

```
$ composer require pandawan-technology/email-transformer
```

Usage
-----

[](#usage)

### Single address

[](#single-address)

In order to make sure you only have one address, you can use the `transformUnique` method as shown below:

```
