Download the PHP package bdk/css-xpath without Composer
On this page you can find all versions of the php package bdk/css-xpath. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download bdk/css-xpath
More information about bdk/css-xpath
Files in bdk/css-xpath
Download bdk/css-xpath
More information about bdk/css-xpath
Files in bdk/css-xpath
Vendor bdk
Package css-xpath
Short Description Search html via CSS selector or convert css selector to xpath
License MIT
Homepage http://github.com/bkdotcom/CssXpath
Package css-xpath
Short Description Search html via CSS selector or convert css selector to xpath
License MIT
Homepage http://github.com/bkdotcom/CssXpath
Please rate this library. Is it a good library?
Informations about the package css-xpath
CssXpath
- Convert CSS selector to XPath
- Query HTML string (or \DOMDocument) by CSS selector
- Provide PHPUnit Assertions (once provided by PHPUnit)
Installation
Usage
CSS to XPath
Query DOM/HTML
Example:
Output:
Pass a last argument of true
, to return a \DOMNodeList
object instead of an array
PHPUnit
bdk\CssXpath\DOMTestCase
extends \PHPUnit\Framework\TestCase
and provids 3 assertions:
assertSelectCount($selector, $count, $actual, $message = '')
assertSelectRegExp($selector, $pattern, $count, $actual, $message = '')
assertSelectEquals($selector, $content, $count, $actual, $message = '')
These assertions were originally provided with PHPUnit 3.3, but removed with PHPUnit 5.0
All versions of css-xpath with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.0
The package bdk/css-xpath contains the following files
Loading the files please wait ....