New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

hnhdigital-os/laravel-emogrifier

A Laravel wrapper for emogrifier that converts CSS styles into inline style attributes in your HTML code.
12,156 5
Install
composer require hnhdigital-os/laravel-emogrifier
Latest Version:v2.1.0
PHP:>=7.2.0
Laravel:5 · 6
License:MIT
Last Updated:Jan 4, 2020
Links: GitHub  ·  Packagist
Maintainer: bluora
                                 _  __ _ 
                                (_)/ _(_)
  ___ _ __ ___   ___   __ _ _ __ _| |_ _  ___ _ __
 / _ \ '_ ` _ \ / _ \ / _` | '__| |  _| |/ _ \ '__|
|  __/ | | | | | (_) | (_| | |  | | | | |  __/ |
 \___|_| |_| |_|\___/ \__, |_|  |_|_| |_|\___|_|
                       __/ |
                      |___/

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.

Latest Stable Version Total Downloads Latest Unstable Version Built for Laravel License Donate to this project using Patreon

Build Status StyleCI Test Coverage Issue Count Code Climate

This package has been developed by H&H|Digital, an Australian botique developer. Visit us at hnh.digital.

Documentation

Requirements

  • Laravel 5.4
  • PHP 7.1

Installation

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,
    ...
)

Instructions

$output = Emogrifier::parse($html, $css);
$output = app('Emogrifier')->parse($html, $css);

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

lanin/laravel-email-templates-optimization

Optimize your email templates' styles via native Laravel templating mechanism.

5,501 7
madeitbelgium/laravel-email-domain-validation

PHP Laravel Email domain validator

70,138 19
altra/email

Package to manage emails

7,013 0
yaquawa/laravel-email-reset

Laravel package for email reset.

2,979 2
bronanza/laravel-emailer

This package provides abstraction for sending email

30 0

Version History

Version Released PHP Laravel License
v2.1.0 >=7.2.0 >=5.4 MIT
2.0.4 >=7.1.0 >=5.4 MIT
2.0.3 >=7.1.0 >=5.4 MIT
2.0.2 >=7.1.0 >=5.4 MIT
2.0.1 >=7.1.0 >=5.4 MIT