symfony/css-selector

Converts CSS selectors to XPath expressions

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 16 minutes ago
Added to GitGenius on September 8th, 2026
Created on February 22nd, 2011
Open Issues & Pull Requests: 0 (+0)
GitHub issues: Disabled - open counts may still include pull requests.
Number of forks: 43
Total Stargazers: 7,421 (+0)
Total Subscribers: 12 (+0)

Repository Insights (GitGenius)

Most active contributors

Sign in to see contributor activity.

Related repositories by overlapping contributors

No overlapping-contributor repos identified yet.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

GitHub issues are disabled for this repository, so issue analytics and the issue explorer are not available.

Detailed Description

Symfony CssSelector is a PHP component that converts CSS selectors to XPath expressions.

The component solves the problem of translating CSS selector syntax into XPath queries, which is useful when working with DOM manipulation and XML parsing where XPath is the native query language. It takes a CSS selector string and produces an equivalent XPath expression that can be executed against XML or HTML documents. This allows developers to use the more familiar CSS selector syntax while working with systems that require XPath.

Developers should choose this component when building tools that need to bridge CSS selectors and XPath-based document querying, such as web scrapers, DOM testing utilities, or XML processors. It is particularly suited to projects already using Symfony components or those that need reliable CSS-to-XPath conversion without implementing the translation logic themselves. The component is a port of an established Python library, which means the conversion logic has been proven across multiple language implementations.

The project maintains steady activity with regular updates and bug fixes integrated into the main Symfony repository. Development follows Symfony's contribution workflow, with issues and pull requests handled through the central Symfony project rather than this component's standalone repository. The component receives ongoing maintenance as part of the broader Symfony ecosystem rather than as an independently versioned package.