[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-8316":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":20,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":16,"starSnapshotCount":16,"syncStatus":26,"lastSyncTime":27,"discoverSource":28},8316,"CssToInlineStyles","tijsverkoyen\u002FCssToInlineStyles","tijsverkoyen","CssToInlineStyles is a class that enables you to convert HTML-pages\u002Ffiles into HTML-pages\u002Ffiles with inline styles. This is very usefull when you're sending emails.","",null,"PHP",5832,192,52,24,0,1,37.86,"BSD 3-Clause \"New\" or \"Revised\" License",false,"master",[],"2026-06-12 02:01:52","# CssToInlineStyles class\n\n[![CI](https:\u002F\u002Fgithub.com\u002Ftijsverkoyen\u002FCssToInlineStyles\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Ftijsverkoyen\u002FCssToInlineStyles\u002Factions\u002Fworkflows\u002Fci.yml)\n\n## About\n\nCssToInlineStyles is a class that enables you to convert HTML-pages\u002Ffiles into\nHTML-pages\u002Ffiles with inline styles. This is very useful when you're sending\nemails.\n\n## Installation\n\nThe recommended installation way is through [Composer](https:\u002F\u002Fgetcomposer.org).\n\n```bash\n$ composer require tijsverkoyen\u002Fcss-to-inline-styles\n```\n\n## Example\n\n```php\nuse TijsVerkoyen\\CssToInlineStyles\\CssToInlineStyles;\n\n\u002F\u002F create instance\n$cssToInlineStyles = new CssToInlineStyles();\n\n$html = file_get_contents(__DIR__ . '\u002Fexamples\u002Fsumo\u002Findex.htm');\n$css = file_get_contents(__DIR__ . '\u002Fexamples\u002Fsumo\u002Fstyle.css');\n\n\u002F\u002F output\necho $cssToInlineStyles->convert(\n    $html,\n    $css\n);\n```\n\n## Known issues\n\n* no support for pseudo selectors\n* no support for [css-escapes](https:\u002F\u002Fmathiasbynens.be\u002Fnotes\u002Fcss-escapes)\n* UTF-8 charset is not always detected correctly. Make sure you set the charset to UTF-8 using the following meta-tag in the head: `\u003Cmeta http-equiv=\"Content-Type\" content=\"text\u002Fhtml; charset=utf-8\" \u002F>`. _(Note: using `\u003Cmeta charset=\"UTF-8\">` does NOT work!)_\n\n## Sites using this class\n\n* [Each site based on Fork CMS](http:\u002F\u002Fwww.fork-cms.com)\n* [Print en Bind](http:\u002F\u002Fwww.printenbind.nl)\n* [Tiki Wiki CMS Groupware](http:\u002F\u002Fsourceforge.net\u002Fp\u002Ftikiwiki\u002Fcode\u002F49505) (starting in Tiki 13)\n* [Laravel Framework](https:\u002F\u002Fgithub.com\u002Flaravel\u002Fframework\u002Fblob\u002Fv6.18.24\u002Fsrc\u002FIlluminate\u002FMail\u002FMarkdown.php#L55)\n","CssToInlineStyles 是一个用于将HTML页面或文件中的CSS样式转换为内联样式的PHP类，特别适用于发送电子邮件时。其核心功能是能够读取外部CSS文件，并将其应用到HTML文档中，从而确保在不支持外部样式表的邮件客户端中也能正确显示样式。技术特点包括通过Composer进行便捷安装、易于使用的API接口以及对大部分常见CSS属性的支持。需要注意的是，该工具目前不支持伪选择器和CSS转义。它非常适合需要保证邮件内容格式一致性的场景，如企业级邮件营销活动、自动报告生成等。",2,"2026-06-11 03:17:19","top_language"]