Download the PHP package zxqfox/css-selector-parser without Composer
On this page you can find all versions of the php package zxqfox/css-selector-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download zxqfox/css-selector-parser
More information about zxqfox/css-selector-parser
Files in zxqfox/css-selector-parser
Download zxqfox/css-selector-parser
More information about zxqfox/css-selector-parser
Files in zxqfox/css-selector-parser
Vendor zxqfox
Package css-selector-parser
Short Description Simple CSS selector parser. PHP port of https://github.com/mdevils/node-css-selector-parser
License MIT
Package css-selector-parser
Short Description Simple CSS selector parser. PHP port of https://github.com/mdevils/node-css-selector-parser
License MIT
Please rate this library. Is it a good library?
Informations about the package css-selector-parser
php-css-selector-parser
Fast and low memory CSS selector parser.
Parses CSS selector into object-model.
Installation
Usage
Produces:
Token description
type may be one of:
- selectors — list of selectors, token contains selectors array of ruleSet tokens (based on "," operator).
- ruleSet — selector, token contains rule field with rule-type object.
- rule — single rule.
Fields for rule type.
- tagName — tag name for the rule (e.g. "div"), may be '*'.
- classNames — list of CSS class names for the rule.
- attrs — list of attribute rules; rule may contain fields:
- name — attribute name, required field.
- valueType — type of comparison value ("string" or "substitute").
- operator — attribute value comparison operator.
- value — comparison attribute value.
- pseudos — list of pseudo class rules; rule may contain fields:
- name — pseudo name, required field.
- valueType — argument type ("string", "selector" or "substitute").
- value — pseudo argument.
- nestingOperator — the operator used to nest this rule (e.g. in selector "tag1 > tag2", tag2 will have nestingOperator=">")
- rule — nested rule.
License
MIT
All versions of css-selector-parser with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4.0
The package zxqfox/css-selector-parser contains the following files
Loading the files please wait ....