Wrapper Version: 1.x
Wrapper for PHP Simple HTML DOM Parser
to work on composer
Version 1.9.1
A simple PHP HTML DOM parser written in PHP5+, supports invalid HTML, and provides a very easy way to find, extract and modify the HTML elements of the dom. jquery like syntax allow sophisticated finding methods for locating the elements you care about.
http://simplehtmldom.sourceforge.net/
cast a command:
php composer.phar require camilord/php-simple-html-dom-parser
or
composer require camilord/php-simple-html-dom-parser
or add to composer.json
"require": {
"camilord/php-simple-html-dom-parser": "^1.0"
}
use camilord\PhpSimpleHtmlDomParser\HtmlDomParser;
...
$dom = HtmlDomParser::str_get_html($str);
or
$dom = HtmlDomParser::file_get_html($file_name);
$elems = $dom->find('small.count');
...