sabberworm/php-css-parser
Parse and manipulate CSS in PHP with a fast, flexible parser. Convert CSS into an object model, inspect and edit rules, selectors, and declarations, then render back to CSS. Useful for minifying, rewriting assets, or building CSS tooling.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| nikic/php-parser | 0.83 | Parse PHP code into an Abstract Syntax Tree (AST) for static analysis, manipulation, and code generation. Supports PHP 5.x to 8.4, handles errors gracefully, and preserves formatting during AST-to-code conversion. Easily traverse, modify, and convert ASTs back to PHP, with JSON serialization support... | 17,439 | 17,509 | 1,121 | 16M | 47 | 75.1 | 67.5 | BSD-3-Clause | 5 months ago | |
| ptachoire/cssembed | 0.82 | Embed and inline images in CSS by converting them to data URIs. ptachoire/cssembed scans your stylesheets for url(...) references and replaces eligible assets with base64-encoded content, reducing HTTP requests and simplifying distribution of self-contained CSS. | 19 | 22 | 6 | 3K | 1 | 0.6 | 30.1 | MIT | — | |
| leafo/scssphp | 0.81 | leafo/scssphp is a PHP compiler for SCSS/Sass. Use it to compile .scss files to CSS in PHP apps, with support for variables, nesting, mixins, imports, and more. Handy for build pipelines, theming, or on-the-fly stylesheet generation. | 1,332 | 1,407 | 211 | 35K | 5 | 23.6 | 21.9 | MIT | 6 years ago | |
| scssphp/scssphp | 0.81 | SCSSPHP is a PHP-based SCSS compiler for compiling .scss to CSS in your apps and build pipelines. Includes PHPUnit test suite, PSR-12 coding standards, and PHPStan static analysis tooling for contributors. | 629 | 640 | 90 | 876K | 11 | 27.6 | 51.7 | MIT | 6 months ago | |
| microsoft/tolerant-php-parser | 0.72 | Tolerant PHP parser from Microsoft that builds an AST even from incomplete or syntactically invalid code. Ideal for IDEs, refactoring tools, and static analysis, with error recovery and precise source positions for tokens and nodes. | 895 | 896 | 83 | 195K | 54 | 23.3 | 52.1 | MIT | — | |
| yiisoft/code-style | 0.72 | Coding style and quality tools for PHP projects from Yii. Provides configuration and presets to keep code formatting consistent and enforce standards across your repository, helping teams maintain clean, readable code with automated checks. | 3 | 3 | 2 | 5K | 0 | 13.3 | 47.5 | BSD-3-Clause | 4 months ago | |
| voku/portable-utf8 | 0.72 | High-performance UTF-8 helper library for PHP with portable polyfills for mbstring and intl features. Provides fast string operations, validation, normalization, encoding fixes, and safe text handling across environments without extra extensions. | 520 | 523 | 91 | 385K | 2 | 6.1 | 41.1 | Apache-2.0 | — | |
| jakubledl/dissect | 0.72 | — | 223 | 224 | 16 | 27K | 3 | 2.8 | 30.9 | NOASSERTION | — | |
| pelago/emogrifier | 0.72 | Emogrifier converts CSS from blocks and stylesheets into inline style attributes in HTML. Ideal for HTML email rendering in clients with poor CSS support (e.g., Outlook, Gmail), ensuring consistent styling across email and mobile readers. | 949 | 959 | 160 | 794K | 80 | 45.1 | 69.8 | MIT | 6 months ago | |
| devanoxltd/php-html-parser | 0.71 | Lightweight PHP HTML parser with jQuery-style CSS selectors. Load HTML from strings or files, handle imperfect markup, and traverse nodes (attributes, innerHtml, siblings). Ideal for quick web scraping and DOM extraction in PHP 7.2–7.4. | 0 | 0 | 0 | 1 | 0 | 5.3 | 4.3 | MIT | 9 months ago | |
| kzykhys/ciconia | 0.71 | Ciconia is a flexible CommonMark/Markdown parser for PHP, converting Markdown to HTML with support for GitHub-flavored syntax and extensions. Designed to be customizable, it fits well in apps needing reliable Markdown rendering and control over output. | 349 | 352 | 28 | 600 | 15 | 10.9 | 11.8 | MIT | 12 years ago | |
| woohoolabs/coding-standard | 0.71 | Woohoo Labs PHP Coding Standard for PHP_CodeSniffer, based on PSR-12 and inspired by Doctrine and Slevomat rules. Install via Composer and drop in the provided phpcs.xml to start enforcing consistent code style (PHP 7.4+). | 3 | 3 | 0 | 40 | 0 | 3.3 | 14.4 | MIT | 2 years ago |
How can I help you explore Laravel packages today?