百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
L

laravel-mail-css-inliner

> 编程语言
开源

使用 Laravel 将 HTML 邮件的 CSS 内联

596 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

使用 Laravel 将 HTML 邮件的 CSS 内联

Laravel Mail CSS Inliner

Why?

Most email clients won't render CSS (on a `` or a `

Hey you

Or the link tag:
```html

    
        
    
    
        
Hey you

    

Into this:

xml

    
        

    
    
        
Hey you

    

Installation

This package needs Laravel 9.x.

Begin by installing this package through Composer. Require it directly from the Terminal to take the last stable version:

bash
composer require fedeisas/laravel-mail-css-inliner

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:

bash
php artisan vendor:publish --provider='Fedeisas\LaravelMailCssInliner\LaravelMailCssInlinerServiceProvider'

and changing the settings on the generated config/css-inliner.php file.

Contributing

  • Install project dependencies:
bash
composer install
  • Execute tests with the following command:
bash
./vendor/bin/phpunit

Found a bug?

Please, let me know! Send a pull request or a patch. Questions? Ask! I will respond to all filed issues.

Inspiration

This package is greatly inspired, and mostly copied, from SwiftMailer CSS Inliner. I just made an easy drop-in solution for Laravel.

License

This package is open-sourced software licensed under the MIT license

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

PHP

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言