2017 © Pedro Peláez
 

library laravel-html-css-email-inliner

Laravel HTML & CSS Email Inliner Wrapper of PHP CssToInlineStyles (https://github.com/tijsverkoyen/CssToInlineStyles)

image

peepitkm/laravel-html-css-email-inliner

Laravel HTML & CSS Email Inliner Wrapper of PHP CssToInlineStyles (https://github.com/tijsverkoyen/CssToInlineStyles)

  • Saturday, November 18, 2017
  • by peepitkm
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Laravel HTML & CSS Email Inliner

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., (*1)

This is just a Laravel Wrapper for PHP CssToInlineStyles (https://github.com/tijsverkoyen/CssToInlineStyles), (*2)

Installation

Laravel 5.x

Begin by installing this package through Composer., (*3)

$ composer require peepitkm/laravel-html-css-email-inliner

Add Inliner as a service provider in app.php, (*4)

'providers' => [
    Emil\Inliner\InlinerServiceProvider::class,
]

Add Inliner alias, (*5)

'aliases' => [
    Emil\Inliner\Facades\Laravel\Inliner::class
]

Laravel 4.x

Begin by installing this package through Composer., (*6)

$ composer require peepitkm/laravel-html-css-email-inliner "1.x-dev"

Add Inliner as a service provider in app.php, (*7)

'providers' => [
    'Emil\Inliner\InlinerServiceProvider',
]

Add Inliner alias, (*8)

'aliases' => [
    'Inliner' => 'Emil\Inliner\Facades\Laravel\Inliner'
]

Quick Example

Disable/enable the inliner

The inliner is enabled by default, (*9)

Inliner::disable();
Inliner::enable();

Check if the inliner is enabled/disabled

Inliner::isDisabled();
Inliner::isEnabled();

Known Issues

  • no support for pseudo selectors
  • no support for css-escapes
  • UTF-8 charset is not always detected correctly. Make sure you set the charset to UTF-8 using the following meta-tag in the head: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />. (Note: using <meta charset="UTF-8"> does NOT work!)

The Versions

18/11 2017

dev-master

9999999-dev

Laravel HTML & CSS Email Inliner Wrapper of PHP CssToInlineStyles (https://github.com/tijsverkoyen/CssToInlineStyles)

  Sources   Download

MIT

The Requires

 

by Tijs Verkoyen
by Emil Sundberg
by Pornpat Paethong

18/11 2017

1.x-dev

1.9999999.9999999.9999999-dev

Laravel HTML & CSS Email Inliner Wrapper of PHP CssToInlineStyles (https://github.com/tijsverkoyen/CssToInlineStyles)

  Sources   Download

MIT

The Requires

 

by Tijs Verkoyen
by Emil Sundberg
by Pornpat Paethong

12/03 2016

2.0.0

2.0.0.0

  Sources   Download

MIT

The Requires

 

by Emil Sundberg

21/11 2014

v1.0.2

1.0.2.0

  Sources   Download

MIT

The Requires

 

by Emil Sundberg

27/07 2014

v1.0.0

1.0.0.0

  Sources   Download

MIT

The Requires

 

by Emil Sundberg

27/07 2014

v1.0.1

1.0.1.0

  Sources   Download

MIT

The Requires

 

by Emil Sundberg