Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/seanbehan/htmlxpath

PHP package for parsing HTML with XPath
https://github.com/seanbehan/htmlxpath

composer html php webscraping xml xpath

Last synced: 23 days ago
JSON representation

PHP package for parsing HTML with XPath

Awesome Lists containing this project

README

        

# About

HTMLXPath is a small utility for consuming HTML web pages and querying using XPath.

# Install

`composer require htmlxpath/htmlxpath`

# Usage

```php
nodeValue;

// or...
foreach(HTMLXPath\html(file_get_contents('http://seanbehan.com')) as $doc)
foreach(HTMLXPath\query($doc, '//a/text()') as $node)
echo $node->nodeValue;

```