Need help with pinky?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

lorenzo
146 Stars 9 Forks MIT License 20 Commits 3 Opened issues

Description

A Foundation for Emails (Inky) template transpiler

Services available

!
?

Need anything else?

Contributors list

# 4,682
PHP
cakephp
Haskell
rapid-d...
7 commits
# 558,358
PHP
Shell
media-p...
2 commits
# 299,486
PHP
HTML
k8s
Symfony
1 commit
# 712
PHP
Symfony
mailer
skeleto...
1 commit
# 739
PHP
Docker
mvc-fra...
php7
1 commit

Pinky

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

Installation

You can install this bundle using composer

composer require lorenzo/pinky

Usage and Examples

Basic Usage

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

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

You can transpile strings directly:

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

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

$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).

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.