pagemachine/typo3-mail-css-inliner
Composer 安装命令:
composer require pagemachine/typo3-mail-css-inliner
包简介
CSS inliner for the TYPO3 mailer
README 文档
README
This extension integrates a CSS inliner into the TYPO3 core mailer.
Installation
This extension is installable from various sources:
-
Via Composer:
composer require pagemachine/typo3-mail-css-inliner -
From the TYPO3 Extension Repository
After installing the extension registers itself automatically, no further configuration is necessary.
Purpose
Designing mails is hard. Especially requirements like table layouts and inline styles are complicated to handle and take a lot of time to get right. This extension takes one burden off your shoulders and takes care of turning a regular stylesheet to inline styles. See our blog post about Mail styling in TYPO3 now easier.
Before:
<!doctype html> <html> <head> <title>CSS Inline Test</title> <style> body { color: #333; } h1 { font-size: 36px; } a { color: #337ab7; } </style> </head> <body> <h1>Headline</h1> <p>Content with <a href="https://example.org">link</a>.</p> </body> </html>
After:
<html> <head> <title>CSS Inline Test</title> <style> body { color: #333; } h1 { font-size: 36px; } a { color: #337ab7; } </style> </head> <body style="color: #333;"> <h1 style="font-size: 36px;">Headline</h1> <p>Content with <a href="https://example.org" style="color: #337ab7;" target="_blank">link</a>.</p> </body> </html>
Currently only <style> elements are supported, external styles via <link> are not imported.
Testing
All tests can be executed with the shipped Docker Compose definition:
docker compose run --rm app composer build
pagemachine/typo3-mail-css-inliner 适用场景与选型建议
pagemachine/typo3-mail-css-inliner 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 42.53k 次下载、GitHub Stars 达 5, 最近一次更新时间为 2018 年 03 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「mail」 「css」 「inline」 「typo3」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 pagemachine/typo3-mail-css-inliner 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 pagemachine/typo3-mail-css-inliner 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 pagemachine/typo3-mail-css-inliner 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Symfony bundle for using the CssToInlineStyles translator by tijsverkoyen
A Twig extension to insert css as inline styles with a tag
A Laravel Nova field for displaying morphTo relationship inline.
Caching and compression for Twig assets (JavaScript and CSS).
Utility functions to inline SVGs in PHP Projects
Inline test plugin for the Testo testing framework.
统计信息
- 总下载量: 42.53k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 15
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2018-03-20