{"id":23062544,"url":"https://github.com/eschmar/css-inliner-bundle","last_synced_at":"2025-08-15T08:33:42.814Z","repository":{"id":20194857,"uuid":"23466040","full_name":"eschmar/css-inliner-bundle","owner":"eschmar","description":"Simple twig css inliner for PHP Symfony","archived":false,"fork":false,"pushed_at":"2020-03-20T14:33:37.000Z","size":18,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-24T16:33:48.803Z","etag":null,"topics":["csstoinlinestyles","inline-css","php","symfony","symfony-bundle","twig"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eschmar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-29T14:10:06.000Z","updated_at":"2023-03-17T12:03:41.000Z","dependencies_parsed_at":"2022-08-05T07:15:12.312Z","dependency_job_id":null,"html_url":"https://github.com/eschmar/css-inliner-bundle","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/eschmar/css-inliner-bundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eschmar%2Fcss-inliner-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eschmar%2Fcss-inliner-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eschmar%2Fcss-inliner-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eschmar%2Fcss-inliner-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eschmar","download_url":"https://codeload.github.com/eschmar/css-inliner-bundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eschmar%2Fcss-inliner-bundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270544948,"owners_count":24604451,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csstoinlinestyles","inline-css","php","symfony","symfony-bundle","twig"],"created_at":"2024-12-16T03:27:23.727Z","updated_at":"2025-08-15T08:33:42.548Z","avatar_url":"https://github.com/eschmar.png","language":"PHP","readme":"# CssInlinerBundle\nSimple twig css inliner for Symfony using [CssToInlineStyles](https://github.com/tijsverkoyen/CssToInlineStyles).\n\n# Installation\nComposer (\u003ca href=\"https://packagist.org/packages/eschmar/css-inliner-bundle\" target=\"_blank\"\u003ePackagist\u003c/a\u003e):\n```sh\ncomposer require eschmar/css-inliner-bundle ^2.0.0 # Symfony ^5.0\n\n# or\n\ncomposer require eschmar/css-inliner-bundle ^1.0.0 # Symfony ^4.1\n\n# or\n\ncomposer require eschmar/css-inliner-bundle ^0.2.0 # Symfony ^3.4\n```\n\napp/Appkernel.php (Symfony \u003c4):\n```php\nnew Eschmar\\CssInlinerBundle\\EschmarCssInlinerBundle(),\n```\n\n# Usage\nThis bundle introduces a new tag to twig:\n\n```html\n{% cssinline %}\n    \u003cstyle\u003e\n        p {\n            padding: 8px 15px;\n            color: #8E2800;\n            background-color: #FFB03B;\n        }\n    \u003c/style\u003e\n    \u003cp\u003eBananaaa!\u003c/p\u003e\n{% endcssinline %}\n```\n\nWhich inlines all ``\u003cstyle\u003e`` tags and strips them out afterwards. The result:\n\n```html\n\u003cp style=\"background-color: #FFB03B; color: #8E2800; padding: 8px 15px;\"\u003eBananaaa!\u003c/p\u003e\n```\n\nNothing more, nothing less. Uses the amazing [CssToInlineStyles](https://github.com/tijsverkoyen/CssToInlineStyles).\n\n# License\nMIT License. Please check [CssToInlineStyles](https://github.com/tijsverkoyen/CssToInlineStyles) for its licensing.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feschmar%2Fcss-inliner-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feschmar%2Fcss-inliner-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feschmar%2Fcss-inliner-bundle/lists"}