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
179 Stars 10 Forks MIT License 32 Commits 2 Opened issues

Description

A Foundation for Emails (Inky) template transpiler

Services available

!
?

Need anything else?

Contributors list

# 5,317
PHP
cakephp
Haskell
rapid-d...
7 commits
# 6,626
PHP
Symfony
Compose...
phpstor...
7 commits
# 563,993
PHP
Shell
media-p...
2 commits
# 305,372
PHP
HTML
k8s
Symfony
1 commit
# 815
PHP
Symfony
mailer
skeleto...
1 commit
# 790
PHP
Docker
mvc-fra...
php7
1 commit

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

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