Awesome Open Source
Awesome Open Source


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


You can install this bundle using composer

composer require lorenzo/pinky

Usage and Examples

Basic Usage

use Pinky;

$transpiled = Pinky\transformFile('path/to/file.html');

// $transpiled is an instance of DOMDocument
echo $transpiled->saveHTML();

You can transpile strings directly:

use Pinky;

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

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

use Pinky;

$files = [$path1, $path2, $path3];

$transpiled = Pinky\transformManyFiles($files);
foreach ($transpiled as $result) {
    echo $result->saveHTML();


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

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
php (16,075
email (301
foundation (31

Find Open Source By Browsing 7,000 Topics Across 59 Categories