symfony/css-selector
Converts CSS selectors to XPath expressions observed · 2026-08-28
Health v2 · maintenance only
99/100
- Activity 99
- Release rhythm 99
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 8
- age_days: 5671
- days_rel: 11
- days_push: 10
- n_releases_24m: 22
Adoption not part of the score
7421 stars · 43 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A Symfony PHP component that converts CSS selectors into XPath expressions. It lets developers query HTML or XML documents using familiar CSS selector syntax with tools that only understand XPath.
Use cases
- convert css selectors to xpath in php
- scrape html using css selectors
- query xml documents with css selector syntax
- use css selectors with an xpath-based parser
- find elements by class or id without writing xpath
When to choose
- you are parsing HTML/XML in PHP and prefer CSS selectors over verbose XPath
- you need a battle-tested, widely-adopted component (used by Codeception, Goutte, etc.)
- you are already in the Symfony ecosystem
When to avoid
- you need selector features beyond what CSS selectors can express (XPath is more powerful)
- you work outside PHP
- you need a full HTML parser rather than selector translation
Facets
library · maturity stable
parser web-scraping developer-tools web-development parsers developer-tools php css-selectors xpath html-parsing symfony-component xml
7 sources
- readme: https://github.com/symfony/css-selector · fetched 2026-08-28 · 971f3089eedf
- homepage: https://symfony.com/css-selector · fetched 2026-08-29 · aec47f7d6fd7
- site_page: https://symfony.com/doc · fetched 2026-08-29 · 44889134f4fb
- site_page: https://symfony.com/doc/current/components/css_selector.html · fetched 2026-08-29 · 80c97d5c5a55
- site_page: https://symfony.com/projects/phpmyfaq · fetched 2026-08-29 · 5482cfc39f34
- site_page: https://symfony.com/releases · fetched 2026-08-29 · f109a7a4a5da
- site_page: https://symfony.com/blog/category/releases · fetched 2026-08-29 · f34945599288
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| symfony/css-selector | main | 99 |
For agents
markdown · JSON · MCP: product_card(name="symfony/css-selector")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem