php-extended/php-css-selector-parser-object

This package is abandoned and no longer maintained. The author suggests using the php-extended/php-css-selector-object package instead.

A library that implements the php-extended/php-css-selector-parser-interface interface library.

4.0.16 2021-06-25 18:40 UTC

README

A library that implements the php-extended/php-css-selector-parser-interface interface library.

coverage build status

Installation

The installation of this library is made via composer. Download composer.phar from their website. Then add to your composer.json :

	"require": {
		...
		"php-extended/php-css-selector-parser-object": "^4",
		...
	}

Then run php composer.phar update to install this library. The autoloading of all classes of this library is made through composer's autoloader.

Basic Usage

To parse css selector data, do the following :


use PhpExtended\Css\CssSelectorParser;

$parser = new CssSelectorParser();
$node = $parser->parse('div p:not(.foo)');
// $node is now a CssAbstractSelectorInterface

License

MIT (See license file).