Download the PHP package dreamvention/inky-premailer without Composer
On this page you can find all versions of the php package dreamvention/inky-premailer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dreamvention/inky-premailer
More information about dreamvention/inky-premailer
Files in dreamvention/inky-premailer
Package inky-premailer
Short Description Implementation of ZURB Inky + CssToInlineStyles. Compile responsive emails on the fly with ease.
License MIT
Informations about the package inky-premailer
inky-premailer
ZURB Inky email templating Language + CssToInlineStyles CSS inliner is the perfect match for creating responsive emails.
Example
I made a simple example of how to quickly implement inky-premailer.
Thanks to
- Thampe for providing php implementation of Foundation for Email parser https://github.com/thampe/inky
- tijsverkoyen for making such a wonderful class to convert HTML into HTML with inline styles https://github.com/tijsverkoyen/CssToInlineStyles
Installation
The recommended installation way is through Composer.
or add the package to your composer.json
file directly.
Usage
Inky templating Language
It's really an awesome thing what ZURB Foundation guys have done with inky. Instead of counting all those td's and tr's you now have a dosen of tags and a clean markup.
This is HTML that an email uses to be responsive. Madness, right.
And this is Inky markup
If you want to start right away using inky go here
Try the templates from Froundation.
Add links to CSS files
You can also add links to CSS files either relative to your root folder or with full address.
How CSS is rendered?
- First the styles in your html file are rendered.
- Then if you have added links to CSS, they will be rendered, rewriting styles added eariler.
This sometimes may be tricky so just stick to one way of adding CSS - in the HTML template file or adding CSS links via php.
$links
and $styles
are optional
License
See the LICENSE file for license info (it's the MIT license).
All versions of inky-premailer with dependencies
tijsverkoyen/css-to-inline-styles Version ^2.2
hampe/inky Version 1.3.6.2
paquettg/php-html-parser Version ^1.7