Skip to content

bigfishtv/cakephp-inline-style

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CakePHP InlineStyle helper

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');

About

A CakePHP 3 helper to automatically transform styles from <style> blocks to style="" attributes. Useful for HTML emails.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages