fridzel/laravel-mail-optimizer

Inlines css and minifies html in Laravel mails

1.0.3 2022-01-24 08:49 UTC

This package is auto-updated.

Last update: 2024-04-24 13:46:39 UTC


README

GitHub issues StyleCI Latest Stable Version License

Inlines css and minifies html in Laravel mails.

Roadmap

  • Load css from url/cdn
  • Disable / Enable optimizations
  • Check some html mail standards
  • Cache mail views
  • Debug function

Installation

Via Composer

$ composer require fridzema/laravel-mail-optimizer

Usage

Publish config

php artisan vendor:publish --provider='Fridzema\LaravelMailOptimizer\LaravelMailOptimizerServiceProvider'

Change log

Please see the changelog for more information on what has changed recently.

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email fridzema@gmail.com instead of using the issue tracker.

Credits

Inspiration

This package is greatly inspired, and mostly copied, from laravel-mail-css-inliner. Because laravel-mail-css-inliner seems abonded i created this package with a few extra features.

License

license. Please see the license file for more information.