bigfishtv/cakephp-inline-style

2.0 2019-07-25 07:16 UTC

This package is auto-updated.

Last update: 2024-04-10 17:18:48 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');