Download the PHP package stayallive/laravel-mail-css-inliner without Composer
On this page you can find all versions of the php package stayallive/laravel-mail-css-inliner. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download stayallive/laravel-mail-css-inliner
More information about stayallive/laravel-mail-css-inliner
Files in stayallive/laravel-mail-css-inliner
Package laravel-mail-css-inliner
Short Description Inline the CSS of your Laravel HTML emails.
License MIT
Homepage https://github.com/stayallive/laravel-mail-css-inliner
Informations about the package laravel-mail-css-inliner
Laravel Mail CSS Inliner
Why?
Most email clients won't render CSS (on a <link>
or a <style>
). The solution is inline your CSS directly on the HTML.
Doing this by hand easily turns into unmaintainable templates. The goal of this package is to automate the process of inlining that CSS before sending the emails.
How?
Using a wonderful CSS inliner package wrapped in a SwiftMailer plugin and served as a Service Provider it just works without any configuration. Since this is a SwiftMailer plugin, it will automatically inline your css when parsing an email template. You don't have to do anything!
Turns style tag:
Or the link tag:
Into this:
Installation
This package requires at least Laravel 9
and PHP 8
.
Begin by installing this package through composer. Require it directly from the CLI to take the last stable version:
At this point the inliner should be already working with the default options. If you want to fine-tune these options, you can do so by publishing the configuration file:
and changing the settings on the generated config/mail-css-inliner.php
file.
Testing
Found a bug?
Please, let me know! Send a pull request or a patch. Questions? Ask! I will respond to all filed issues.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
This is a fork from fedeisas/laravel-mail-css-inliner.
The forked package is greatly inspired, and mostly copied, from SwiftMailer CSS Inliner.
- Alex Bouma
- All Contributors
- All Contributors from fedeisas/laravel-mail-css-inliner
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-mail-css-inliner with dependencies
ext-dom Version *
laravel/framework Version ^9||^10||^11.0
tijsverkoyen/css-to-inline-styles Version ^2.2