PHPackages                             stafox/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. stafox/zurb-ink-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

stafox/zurb-ink-bundle
======================

Creating email templates is hard. This Bundle provides help.

3.0.0(8y ago)025MITHTMLPHP ^7.0

Since Jan 17Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Stafox/ZurbInkBundle)[ Packagist](https://packagist.org/packages/stafox/zurb-ink-bundle)[ Docs](https://github.com/Stafox/ZurbInkBundle)[ RSS](/packages/stafox-zurb-ink-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (14)Used By (0)

**WARNING**: this is only a Extended-Fork of ""

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 Fork by voku](https://github.com/voku/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 stafox/zurb-ink-bundle

```

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

Php 7.0 is now required. Make sure your composer.json, does not set the platform to php `< 7.0`:

```
"config": {
   "bin-dir": "bin",
   "platform": {
       "php": "7.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 Stafox\ZurbInkBundle\StafoxZurbInkBundle(),
    // ...
);

```

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 `StafoxZurbInkBundle::base.html.twig`.

```
{% extends 'StafoxZurbInkBundle: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 'StafoxZurbInkBundle::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

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 56.9% 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 ~142 days

Recently: every ~86 days

Total

11

Last Release

3077d ago

Major Versions

1.0.10 → 2.1.0.02016-04-23

2.2.5 → 3.0.02017-12-06

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

2.2.2PHP ^5.3.2 || ^7.0

3.0.0PHP ^7.0

### Community

Maintainers

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

---

Top Contributors

[![thampe](https://avatars.githubusercontent.com/u/761744?v=4)](https://github.com/thampe "thampe (29 commits)")[![Stafox](https://avatars.githubusercontent.com/u/1101646?v=4)](https://github.com/Stafox "Stafox (6 commits)")[![zo0o0ot](https://avatars.githubusercontent.com/u/876146?v=4)](https://github.com/zo0o0ot "zo0o0ot (4 commits)")[![huebs](https://avatars.githubusercontent.com/u/1166532?v=4)](https://github.com/huebs "huebs (4 commits)")[![alcaeus](https://avatars.githubusercontent.com/u/383198?v=4)](https://github.com/alcaeus "alcaeus (3 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/stafox-zurb-ink-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/stafox-zurb-ink-bundle/health.svg)](https://phpackages.com/packages/stafox-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)
