bigfishtv / cakephp-inline-style
2.0
2019-07-25 07:16 UTC
Requires
- cakephp/cakephp: ^3.0
- pelago/emogrifier: ^2
This package is auto-updated.
Last update: 2024-12-10 18:44:47 UTC
README
A CakePHP 3 helper to automatically transform styles from <style>
blocks to style=""
attributes. Useful for HTML emails.
Internally uses the library https://github.com/christiaan/InlineStyle
Installation
composer require bigfishtv/cakephp-inline-style
Usage
For emails:
$email->helpers(['InlineStyle']);
For regular pages. In your App\View\AppView
class:
$this->loadHelper('InlineStyle');