https://github.com/bigfishtv/cakephp-inline-style
A CakePHP 3 helper to automatically transform styles from <style> blocks to style="" attributes. Useful for HTML emails.
https://github.com/bigfishtv/cakephp-inline-style
cakephp-helper html-emails inline-styles
Last synced: 5 months ago
JSON representation
A CakePHP 3 helper to automatically transform styles from <style> blocks to style="" attributes. Useful for HTML emails.
- Host: GitHub
- URL: https://github.com/bigfishtv/cakephp-inline-style
- Owner: bigfishtv
- Created: 2016-07-20T01:26:17.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2021-10-10T12:03:10.000Z (over 4 years ago)
- Last Synced: 2025-10-26T19:51:36.505Z (8 months ago)
- Topics: cakephp-helper, html-emails, inline-styles
- Language: PHP
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CakePHP InlineStyle helper
A CakePHP 3 helper to automatically transform styles from `` 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:
```php
$email->helpers(['InlineStyle']);
```
For regular pages. In your `App\View\AppView` class:
```php
$this->loadHelper('InlineStyle');
```