PHPackages                             philtune/html-email-framework - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. philtune/html-email-framework

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

philtune/html-email-framework
=============================

PHP build tool for creating bullet-proof emails

00PHP

Since Feb 1Pushed 4y ago1 watchersCompare

[ Source](https://github.com/philtune/Email-Framework)[ Packagist](https://packagist.org/packages/philtune/html-email-framework)[ RSS](/packages/philtune-html-email-framework/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Email Framework
===============

[](#email-framework)

This is a framework for us to build out consistent, error-free emails. Still very much a work in progress. The goal is to not have to think about HOW to build a bulletproof email.

Initially authored by [Phil Tune](mailto:phillip_tune@discovery.com) in Jan 2022.

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

[](#installation)

```
$ git clone https://github.com/philtune-discovery/Email-Framework.git
```

Framework Directories and Bootstrapping
---------------------------------------

[](#framework-directories-and-bootstrapping)

Inside `/framework` are a few class directories and bootstrapping files.

- `App` - has a handful of generic, App framework utility methods
- `DOM` - dependency that manages building DOM elements
- `HTMLEmail` - abstracts a lot of coding blocks used specifically in email development
- `Styles` - (todo) should manage options for painlessly managing and inserting styles
- `View` - nice utility class for loading view files and injecting data
- `autoloader.php` - generic class autoloader, (mostly) follows [PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md) standards
- `bootstrap.php` - called by `../index.php` for bootstrapping
- `console.php` - currently just has a quick "dump and die" function called `json_out()`
- `definitions.php` - sets a bunch of required defaults for the app
- `helpers.php` - utility functions; this is also a good place to load any helper files found inside the class directories; helpers are more succinct ways to access class methods

Other Directories
-----------------

[](#other-directories)

- `config` - PHP files that should return a value, usually for storing data separate from application logic; use `config('path')` (without the trailing `.php`) to return the data
- `dist` - nice place to store output and static files; you can change this in `framework/definitions.php`
- `views` - using the `view('path', ['key'=>'val'])` helper will return files from here; also can be changed in `framework/definitions.php`

Usage
-----

[](#usage)

On `/views/pages/home.php`:

```
use HTMLEmail\OLD\HTMLEmailz;

echo HTMLEmailz::include('main');

// TODO - finish usage documentation
```

Contributing
------------

[](#contributing)

Pull requests are welcome. As industry best practices and techniques (as well as our own unique needs) evolve, this framework can and should be updated.

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 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/21262d51511df9152e0b59fd650a97baff1f5649074de844bf43b20835466623?d=identicon)[philtune](/maintainers/philtune)

---

Top Contributors

[![philtune-discovery](https://avatars.githubusercontent.com/u/74782922?v=4)](https://github.com/philtune-discovery "philtune-discovery (15 commits)")

### Embed Badge

![Health badge](/badges/philtune-html-email-framework/health.svg)

```
[![Health](https://phpackages.com/badges/philtune-html-email-framework/health.svg)](https://phpackages.com/packages/philtune-html-email-framework)
```

PHPackages © 2026

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