PHPackages                             hampe/zurb-ink-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. [Templating &amp; Views](/categories/templating)
4. /
5. hampe/zurb-ink-bundle

Abandoned → [gremo/zurb-ink-bundle](/?search=gremo%2Fzurb-ink-bundle)Symfony-bundle[Templating &amp; Views](/categories/templating)

hampe/zurb-ink-bundle
=====================

Creating email templates is hard. This Bundle provides help.

2.2.6(8y ago)62428.6k↓50%36[1 PRs](https://github.com/thampe/ZurbInkBundle/pulls)MITHTMLPHP ^5.3.2 || ^7.0

Since Jan 17Pushed 7y ago3 watchersCompare

[ Source](https://github.com/thampe/ZurbInkBundle)[ Packagist](https://packagist.org/packages/hampe/zurb-ink-bundle)[ Docs](http://github.com/thampe/ZurbInkBundle)[ RSS](/packages/hampe-zurb-ink-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (13)Used By (0)

This repository is no longer maintained.
========================================

[](#this-repository-is-no-longer-maintained)

Issue reports and pull requests will not be attended. There seems to be an *active* fork. You might want to you [this](https://github.com/gremo/ZurbInkBundle) instead.

ZurbInkBundle (Foundation for Emails 2)
=======================================

[](#zurbinkbundle-foundation-for-emails-2)

Creating email templates is hard. This Symfony Bundle provides some help:

- [Foundation for Emails 2](https://github.com/zurb/foundation-emails) Integration for awesome and responsive emails. Checkout their [documentation](http://foundation.zurb.com/emails.html).
- Use normal CSS files for styling, add them via `{{ zurb_ink_styles.add("@YourBundle/Resources/public/css/styles.css") }}`.
- Automatic inline styles via the `{% ìnlinestyle %}` tag (powered by [Tijs Verkoyen's CssToInlineStyles](https://github.com/tijsverkoyen/CssToInlineStyles)).
- Imports your CSS rules also in html head via `{{ includeStyles(zurb_ink_styles) }}`
- **New in 2.0:** [Inky](https://github.com/zurb/inky)-Template Support via the `{% inky %}` tag (powered by )

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

[](#installation)

You can install this bundle using composer

```
composer require hampe/zurb-ink-bundle

```

or add the package to your `composer.json` file directly.

Php 5.4 is now required. Make sure your composer.json, does not set the platform to php 5.3.\*:

```
"config": {
   "bin-dir": "bin",
   "platform": {
       "php": "5.4.0"
   }
},

```

After you have installed the package, you just need to add the bundle to your AppKernel.php file:

```
// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new Hampe\Bundle\ZurbInkBundle\HampeZurbInkBundle(),
    // ...
);

```

Usage
-----

[](#usage)

### Option A: Extend the base.html.twig

[](#option-a-extend-the-basehtmltwig)

If you want to use the zurb ink framework, extend the `HampeZurbInkBundle::base.html.twig`.

```
{% extends 'HampeZurbInkBundle:FoundationForEmails:2/base.html.twig' %}
{% block preHtml %}
        {# add your css files here, please use a bundle relative path #}
        {{ zurb_ink_styles.add("@YourBundle/Resources/public/css/style1.css") }}
        {{ zurb_ink_styles.add("@YourBundle/Resources/public/css/style2.css") }}
        ...
    {% endblock %}
{% block content %}
    {# html #}
{% endblock %}
{% extends 'HampeZurbInkBundle::base.html.twig' %}

```

---

*Note:* If you prefer not to have the CSS-Styles also in the `` of your HTML-Document, you can override the `headStyles`-Block: `{% block headStyles %}{% endblock %}`. Be aware that some CSS-Rules can't be realized with inline-styles, like `:hover`-States or `@media`-Queries (both uesed by ZURB Ink Framework)!

### Option B: Write your own template from scratch

[](#option-b-write-your-own-template-from-scratch)

```
{% spaceless %}
{# add your styles before the inlinestyle tag #}
{{ zurb_ink_styles.add("@YourBUndle/Resources/public/css/style.css") }}
{% inlinestyle %}

    {% block headStyles %}

            {% autoescape false %}
            {{ includeStyles(zurb_ink_styles) }}
            {% endautoescape %}

    {% endblock %}

{% inky %} {# inky-tag for inky-template support  #}

    {% block body %}

                        {% block content %}

                        {% endblock %}

         &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
    {% endblock %}

{% endinky %}

{% endinlinestyle %}
{% endspaceless %}

```

License
-------

[](#license)

See the [LICENSE](LICENSE) file for license info (it's the MIT license).

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity47

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 65.3% 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 ~148 days

Recently: every ~101 days

Total

11

Last Release

3024d ago

Major Versions

1.0.10 → 2.1.0.02016-04-23

PHP version history (2 changes)1.0.5PHP &gt;=5.3.2

2.2.2PHP ^5.3.2 || ^7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/761744?v=4)[Thomas Hampe](/maintainers/thampe)[@thampe](https://github.com/thampe)

---

Top Contributors

[![thampe](https://avatars.githubusercontent.com/u/761744?v=4)](https://github.com/thampe "thampe (32 commits)")[![alcaeus](https://avatars.githubusercontent.com/u/383198?v=4)](https://github.com/alcaeus "alcaeus (4 commits)")[![huebs](https://avatars.githubusercontent.com/u/1166532?v=4)](https://github.com/huebs "huebs (4 commits)")[![zo0o0ot](https://avatars.githubusercontent.com/u/876146?v=4)](https://github.com/zo0o0ot "zo0o0ot (4 commits)")[![davidromani](https://avatars.githubusercontent.com/u/698779?v=4)](https://github.com/davidromani "davidromani (2 commits)")[![istvancsabakis](https://avatars.githubusercontent.com/u/25278901?v=4)](https://github.com/istvancsabakis "istvancsabakis (1 commits)")[![tgabi333](https://avatars.githubusercontent.com/u/187022?v=4)](https://github.com/tgabi333 "tgabi333 (1 commits)")[![DougHayward](https://avatars.githubusercontent.com/u/4302775?v=4)](https://github.com/DougHayward "DougHayward (1 commits)")

---

Tags

emailtemplatezurbink

### Embed Badge

![Health badge](/badges/hampe-zurb-ink-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/hampe-zurb-ink-bundle/health.svg)](https://phpackages.com/packages/hampe-zurb-ink-bundle)
```

###  Alternatives

[lorenzo/pinky

A Foundation for Emails (Inky) template transpiler

28813.3M12](/packages/lorenzo-pinky)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[twig/inky-extra

A Twig extension for the inky email templating engine

16612.5M47](/packages/twig-inky-extra)[larablocks/pigeon

A more flexible email message builder for Laravel 5 including chained methods, reusable message configurations, and message layout and template view management.

143.7k](/packages/larablocks-pigeon)

PHPackages © 2026

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