# tijsverkoyen/CssToInlineStyles

> PHP class that moves CSS rules inline for HTML email

Navigation: [Developer Tools](category/developer-tools.txt) · [Index](../llms.txt)

## Facts

- GitHub: https://github.com/tijsverkoyen/CssToInlineStyles
- HTML: https://awesomeopensource.dev/project/tijsverkoyen-csstoinlinestyles
- License: BSD-3-Clause
- Language: PHP
- stars: 5817
- Activity score: 1.9/5 (Slowing down)
- Last commit (any branch): 2026-01-06
- Last release: v2.4.0 2025-12-11

## Description

CssToInlineStyles takes an HTML document and a stylesheet and returns the same markup with the matching declarations written into style attributes, which is what email clients require to render consistently. It is installed with Composer and used by calling convert() with the HTML and CSS strings; Laravel's Markdown mailer and several CMS projects rely on it. Pseudo selectors and CSS escapes are not supported, and UTF-8 must be declared in the document head.

## Maintenance activity

- Recency: 9% (weight 40%) — last commit: 311 days ago
- Commit volume: 16% (weight 25%)
- Releases: 31% (weight 25%) — last release: 337 days ago
- Bug fixes: 76% (weight 10%)
- Commits: 0 / 90d, 6 / 365d

## Similar projects

- [stablyai/orca](stablyai-orca.md): Run several coding agents in parallel, each in its own Git worktree · Activity score 5.0/5 (Thriving)
- [tauri-apps/tauri](tauri-apps-tauri.md): Build small desktop and mobile apps with a web frontend and a Rust core · Activity score 5.0/5 (Thriving)
- [microsoft/terminal](microsoft-terminal.md): Tabs, panes and GPU rendering for PowerShell, cmd, WSL and SSH on Windows · Activity score 5.0/5 (Thriving)
- [ant-design/ant-design](ant-design-ant-design.md): A UI Design Language. · Activity score 5.0/5 (Thriving)
- [microsoft/playwright](microsoft-playwright.md): End-to-end testing and browser automation across Chromium, Firefox and WebKit · Activity score 5.0/5 (Thriving)
- [nvm-sh/nvm](nvm-sh-nvm.md): POSIX shell script for installing and switching between Node.js versions · Activity score 5.0/5 (Thriving)
