Laravel HTML & CSS Email Inliner Wrapper of PHP CssToInlineStyles (https://github.com/tijsverkoyen/CssToInlineStyles)
peepitkm/laravel-html-css-email-inliner is a Laravel package for laravel html & css email inliner wrapper of php csstoinlinestyles (https://github.com/tijsverkoyen/csstoinlinestyles).
It currently has 0 GitHub stars and 40 downloads on Packagist (latest version 2.0.0).
Install it with composer require peepitkm/laravel-html-css-email-inliner.
Discover more Laravel packages by peepitkm
or browse all Laravel packages to compare alternatives.
Last updated
To make HTML email work, you need to put all CSS rules inline to make sure it works everywhere. It's a pain when developing your code and that's why you want a package to do it on the fly.
This is just a Laravel Wrapper for PHP CssToInlineStyles (https://github.com/tijsverkoyen/CssToInlineStyles)
Begin by installing this package through Composer.
$ composer require peepitkm/laravel-html-css-email-inliner
Add Inliner as a service provider in app.php
'providers' => [
Emil\Inliner\InlinerServiceProvider::class,
]
Add Inliner alias
'aliases' => [
Emil\Inliner\Facades\Laravel\Inliner::class
]
Begin by installing this package through Composer.
$ composer require peepitkm/laravel-html-css-email-inliner "1.x-dev"
Add Inliner as a service provider in app.php
'providers' => [
'Emil\Inliner\InlinerServiceProvider',
]
Add Inliner alias
'aliases' => [
'Inliner' => 'Emil\Inliner\Facades\Laravel\Inliner'
]
The inliner is enabled by default
Inliner::disable();
Inliner::enable();
Inliner::isDisabled();
Inliner::isEnabled();
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />. (Note: using <meta charset="UTF-8"> does NOT work!)