Package Data | |
---|---|
Maintainer Username: | bluora |
Maintainer Contact: | rocco@hnh.digital (Rocco Howard) |
Package Create Date: | 2017-05-04 |
Package Last Update: | 2020-01-04 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2025-01-29 15:08:11 |
Package Statistics | |
---|---|
Total Downloads: | 12,071 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 5 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
_ __ _
(_)/ _(_)
___ _ __ ___ ___ __ _ _ __ _| |_ _ ___ _ __
/ _ \ '_ ` _ \ / _ \ / _` | '__| | _| |/ _ \ '__|
| __/ | | | | | (_) | (_| | | | | | | | __/ |
\___|_| |_| |_|\___/ \__, |_| |_|_| |_|\___|_|
__/ |
|___/
This package provides a Laravel wrapper to the Emogrifier package that provides the ability to convert CSS styles into inline style attributes in your HTML code.
This package has been developed by H&H|Digital, an Australian botique developer. Visit us at hnh.digital.
Via composer:
$ composer require hnhdigital-os/laravel-emogrifier ~2.0
The service provider will autoload from Laravel 5.5.
Enable the facade by editing config/app.php:
'aliases' => array(
...
'Emogrifier' => HnhDigital\Emogrifier\Facade::class,
...
)
To enable the service provider in versions prior to Laravel 5.4, edit the config/app.php:
Enable the service provider by editing config/app.php:
'providers' => array(
...
HnhDigital\Emogrifier\ServiceProvider::class,
...
)
$output = Emogrifier::parse($html, $css);
$output = app('Emogrifier')->parse($html, $css);
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.