https://github.com/hnhdigital-os/laravel-emogrifier
A Laravel wrapper for emogrifier that converts CSS styles into inline style attributes in your HTML code.
https://github.com/hnhdigital-os/laravel-emogrifier
Last synced: 3 months ago
JSON representation
A Laravel wrapper for emogrifier that converts CSS styles into inline style attributes in your HTML code.
- Host: GitHub
- URL: https://github.com/hnhdigital-os/laravel-emogrifier
- Owner: hnhdigital-os
- License: mit
- Created: 2017-05-04T13:10:09.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-01-04T11:01:36.000Z (over 5 years ago)
- Last Synced: 2025-03-28T02:03:54.464Z (4 months ago)
- Language: PHP
- Size: 60.5 KB
- Stars: 5
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
```
_ __ _
(_)/ _(_)
___ _ __ ___ ___ __ _ _ __ _| |_ _ ___ _ __
/ _ \ '_ ` _ \ / _ \ / _` | '__| | _| |/ _ \ '__|
| __/ | | | | | (_) | (_| | | | | | | | __/ |
\___|_| |_| |_|\___/ \__, |_| |_|_| |_|\___|_|
__/ |
|___/
```This package provides a Laravel wrapper to the [Emogrifier](https://github.com/jjriv/emogrifier) package that provides the ability to convert CSS styles into inline style attributes in your HTML code.
[](https://packagist.org/packages/hnhdigital-os/laravel-emogrifier) [](https://packagist.org/packages/hnhdigital-os/laravel-emogrifier) [](https://packagist.org/packages/hnhdigital-os/laravel-emogrifier) [](https://laravel.com/) [](https://packagist.org/packages/hnhdigital-os/laravel-navigation-builder) [](https://patreon.com/RoccoHoward)
[](https://travis-ci.org/hnhdigital-os/laravel-emogrifier) [](https://styleci.io/repos/90264632) [](https://codeclimate.com/github/hnhdigital-os/laravel-emogrifier/coverage) [](https://codeclimate.com/github/hnhdigital-os/laravel-emogrifier) [](https://codeclimate.com/github/hnhdigital-os/laravel-emogrifier)
This package has been developed by H&H|Digital, an Australian botique developer. Visit us at [hnh.digital](http://hnh.digital).
## Documentation
* [Requirements](#requirements)
* [Installation](#install)
* [Configuration](#configuration)
* [Instructions](#instructions)
* [Contributing](#contributing)
* [Credits](#credits)
* [License](#license)## 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:
```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:
```php
'providers' => array(
...
HnhDigital\Emogrifier\ServiceProvider::class,
...
)
```## Instructions
```php
$output = Emogrifier::parse($html, $css);
$output = app('Emogrifier')->parse($html, $css);```
## Contributing
Please see [CONTRIBUTING](https://github.com/hnhdigital-os/laravel-emogrifier/blob/master/CONTRIBUTING.md) for details.
## Credits
* [Rocco Howard](https://github.com/RoccoHowrd)
* [All Contributors](https://github.com/hnhdigital-os/laravel-emogrifier/contributors)## License
The MIT License (MIT). Please see [License File](https://github.com/hnhdigital-os/laravel-emogrifier/blob/master/LICENSE) for more information.