carica/phpcss
carica/phpcss is a lightweight PHP library for parsing, manipulating, and rendering CSS. It turns stylesheets into an object model so you can inspect or modify rules and declarations, then output clean or optimized CSS for dynamic styles and build tools.
carica/phpcss is a framework-agnostic Composer library that parses CSS selectors into an AST and may support translation/query-related use cases. It fits Laravel as an isolated domain/support dependency, not as a full HTML/CSS query engine. Best fit is selector validation, normalization, analysis, rule matching, or internal tooling where the AST is genuinely useful. For ordinary HTML traversal, a maintained DOM/CssSelector stack is a better architectural fit.SelectorParser, returning internal DTOs rather than leaking package ASTs across the codebase. Register it via a Laravel service provider only if shared configuration/caching is needed. Pair with DOMDocument/XPath or Symfony DomCrawler for actual HTML querying; do not position PhpCss as a replacement for those components.dom, mbstring as applicable), autoloading, and Laravel version independence. Since the last release predates current PHP releases, run CI against our production PHP versions and static analysis before adoption. If incompatible, either avoid the package or budget for a maintained fork.How can I help you explore Laravel packages today?