php-extended / php-html-parser-object
A library that implements the php-extended/php-html-parser-interface interface library
Installs: 12 662
Dependents: 3
Suggesters: 0
Security: 0
pkg:composer/php-extended/php-html-parser-object
Requires
Requires (Dev)
README
A library that implements the php-extended/php-html-parser-interface interface library.
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-html-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 html data, do the following :
use PhpExtended\Html\HtmlParser;
$parser = new HtmlParser();
$node = $parser->parse('<!DOCTYPE html><html><head><meta charser="UTF-8" /></head><body><h1>Foo</h1></body></html>');
// $node is not an HtmlCollectionNodeInterface
License
MIT (See license file).