bigfishtv / cakephp-inline-style
Installs: 765
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/bigfishtv/cakephp-inline-style
Requires
- cakephp/cakephp: ^3.0
- pelago/emogrifier: ^2
This package is auto-updated.
Last update: 2025-10-10 20:46:53 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');