PHPackages                             fullpipe/email-template-bundle - 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. fullpipe/email-template-bundle

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

fullpipe/email-template-bundle
==============================

Keep email templates in repo and in order

07PHP

Since Feb 16Pushed 11y ago1 watchersCompare

[ Source](https://github.com/fullpipe/email-template-bundle)[ Packagist](https://packagist.org/packages/fullpipe/email-template-bundle)[ RSS](/packages/fullpipe-email-template-bundle/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

About EmailTemplateBundle
=========================

[](#about-emailtemplatebundle)

Keep email templates in repo and in order.

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

[](#installation)

First you need to add `fullpipe/email-template-bundle` to `composer.json`:

```
{
   "require": {
        "fullpipe/email-template-bundle": "dev-master"
    }
}
```

You also have to add `EmailTemplateBundle` to your `AppKernel.php`:

```
// app/AppKernel.php
class AppKernel extends Kernel
{
    //...
    public function registerBundles()
    {
        $bundles = array(
            //...
            new Fullpipe\ImageBundle\FullpipeImageBundle()
        );

        return $bundles;
    }
    //...
}
```

Configuration
-------------

[](#configuration)

```
fullpipe_email_template:
    # default from email
    from: # or simply from: noreply@example.com
        email: noreply@example.com
        name: noreply

    # default no reply email
    reply_to: # or simply reply_to: reply@example.com
        email: reply@example.com
        name: We are waiting for your reply

    # default utm-marks for links in emails (optional)
    utm:
        utm_source: source_test
        utm_medium: medium_test
        utm_campaign: campaign_test

    # default host for which utm-marks will be applied
    host: %router.request_context.scheme%://%router.request_context.host%

    # Your templates
    # requires at least one template
    templates:
        default: # template name
            # template uri
            template: "FullpipeEmailTemplateBundle:Template:default.html.twig"

            # custom utm-marks (optional)
            utm:
                utm_source: source_default
                utm_medium: medium_default
                utm_campaign: campaign_default

            # custorm host (optional)
            host: http://example.com

            # generate text version automatically, true by default
            generate_text_version: true
        #...
```

Usage
-----

[](#usage)

For example we need to send confirmation email, after user registration. First, we need to add template config:

```
fullpipe_email_template:
    #...
    templates:
        reg_confirmation:
            template: "AcmeWebBundle:EmailTemplates:reg_confirmation.html.twig"
            utm:
                utm_source: reg_confirmation
                utm_medium: email
```

Second, we need to create `AcmeWebBundle:EmailTemplates:reg_confirmation.html.twig`:

```
{% block subject %}Good to you, {{ username }}{% endblock %}
{% block body_html %}
    "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

                ...

            Hello, {{ username }}
            Lorem ipsum dolor sit amet, consectetur adipisicing elit. Magnam deserunt magni libero quas aperiam, labore harum, eos expedita, dolores autem illum? Fugiat, molestias, minus. Libero impedit fugit inventore, aliquid perspiciatis.

{% endblock %}
```

And we could send our email:

```
    $this->get('fullpipe_email_template.mailer')
        ->prepareMessage('reg_confirmation', array('username' => 'USERNAME!'))
        ->setTo('username@example.com', 'USERNAME!')
        ->send();
```

Profits
-------

[](#profits)

- if in twig template block `{% block body_text %}...{% endblock %}` is missing and option `generate_text_version` is `true` then text version will be generated by [html2text](https://github.com/mtibben/html2text)
- html version is processed by [CssToInlineStyles](https://github.com/tijsverkoyen/CssToInlineStyles)

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![fullpipe](https://avatars.githubusercontent.com/u/929659?v=4)](https://github.com/fullpipe "fullpipe (13 commits)")

### Embed Badge

![Health badge](/badges/fullpipe-email-template-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/fullpipe-email-template-bundle/health.svg)](https://phpackages.com/packages/fullpipe-email-template-bundle)
```

###  Alternatives

[maize-tech/laravel-email-domain-rule

Laravel Email Domain Rule

612.0k](/packages/maize-tech-laravel-email-domain-rule)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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