fridzel / laravel-mail-optimizer
Inlines css and minifies html in Laravel mails
1.0.3
2022-01-24 08:49 UTC
Requires
- illuminate/support: ~5.5.0|~5.6.0|~5.7.0|~5.8.0|~6.0|^7.0|^8.0|^9.0
- tijsverkoyen/css-to-inline-styles: ~2.0
- voku/html-min: ^4.0
README
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.