PHPackages                             strack/email\_templates - 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. strack/email\_templates

ActiveLibrary[Templating &amp; Views](/categories/templating)

strack/email\_templates
=======================

Utility package to parse templates for emails easily

1.0.2(8y ago)019MITPHP

Since Oct 4Pushed 8y ago1 watchersCompare

[ Source](https://github.com/weijer/strack_email_templates)[ Packagist](https://packagist.org/packages/strack/email_templates)[ Docs](https://github.com/mkeitsch/utility-emailtemplates)[ RSS](/packages/strack-email-templates/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (1)Versions (6)Used By (0)

MKcom.Utility.EmailTemplates
============================

[](#mkcomutilityemailtemplates)

Simple class for parsing email templates written in HTML with variable data.

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

[](#installation)

### via Composer

[](#via-composer)

**Note:** This package is not registered on packagist.org.

```
$ composer config repositories.mkcom/utility-emailtemplates vcs git@github.com:mkeitsch/utility-emailtemplates.git

$ composer require mkcom/utility-emailtemplates
```

Using EmailTemplates
--------------------

[](#using-emailtemplates)

Create a simple HTML file for an email template.

Use `subject` instead of `title` for your email subject in the head section.

Double curly braces `{{}}` are used for defining variables. You can use it wherever you want in the template. I recommend using camelCased variable names. These are tested. But you can use and test whatever you want.

```
>

            My Subject For A New Email

        Hey {{firstName}},

        this is a my email template.

        Greetings {{senderName}} :)

```

Create a new email template by just instantiating the `EmailTemplate` class with the location of the template file and an array of variables that should be inserted as arguments.

```
$emailTemplate = new EmailTemplate(__DIR__.'/Templates/myEmailTemplate.html', array(
    'firstName' => 'John',
    'senderName' => 'Max',
));

$emailBody = $emailTemplate->getBody();
$emailSubject = $emailTemplate->getSubject();
```

Perfect Neos Flow Integration
-----------------------------

[](#perfect-neos-flow-integration)

Works perfectly with **Neos Flow** and the `resource://`-Wrapper:

```
$emailTemplate = new EmailTemplate('resource://Acme.Demo/Private/Email/Template/FooBar.html', array(...));
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

Established project with proven stability

 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

Every ~205 days

Total

4

Last Release

2939d ago

Major Versions

0.1 → 1.02016-10-31

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12838756?v=4)[weijer](/maintainers/weijer)[@weijer](https://github.com/weijer)

---

Top Contributors

[![mkeitsch](https://avatars.githubusercontent.com/u/7091019?v=4)](https://github.com/mkeitsch "mkeitsch (15 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/strack-email-templates/health.svg)

```
[![Health](https://phpackages.com/badges/strack-email-templates/health.svg)](https://phpackages.com/packages/strack-email-templates)
```

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3861.2M](/packages/limenius-react-bundle)[area17/laravel-auto-head-tags

Laravel Auto Head Tags helps you build the list of head elements for your app

4616.0k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.2k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

281.8k](/packages/webkinder-sproutset)

PHPackages © 2026

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