GitPedia

Pinky

A Foundation for Emails (Inky) template transpiler

From lorenzo·Updated June 18, 2026·View on GitHub·

A PHP Transpiler for ([Inky](https://github.com/foundation/inky)), the templating language made for the Foundation for Email framework. The project is written primarily in PHP, distributed under the MIT License license, first published in 2017. Key topics include: email, foundation, inky, php.

Latest release: 1.1.0
July 31, 2023View Changelog →

Pinky

A PHP Transpiler for (Inky), the templating language made for the Foundation for Email framework.

Installation

You can install this bundle using composer

composer require lorenzo/pinky

Usage and Examples

Basic Usage

php
<?php use Pinky; $transpiled = Pinky\transformFile('path/to/file.html'); // $transpiled is an instance of DOMDocument echo $transpiled->saveHTML();

You can transpile strings directly:

php
<?php use Pinky; $transpiled = Pinky\transformString('<row>Contents</row>'); echo $transpiled->saveHTML();

And you can also transpile many files or strings in batch:

php
<?php use Pinky; $files = [$path1, $path2, $path3]; $transpiled = Pinky\transformManyFiles($files); foreach ($transpiled as $result) { echo $result->saveHTML(); }

License

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

Contributors

Showing top 11 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from lorenzo/pinky via the GitHub API.Last fetched: 6/28/2026