Adaptation for Composer and PSR-0 of: PHP Simple HTML DOM Parser project usable as a Composer package.
Check the official documentation at SourceForge.
- PHP 5.3+ Support
- Composer & PSR-0 Support
- PHPUnit testing via Travis CI
- PHP-Quality testing via SensioLabsInsight
- UTF-8 Support
- Invalid HTML Support
- Find tags on an HTML page with selectors just like jQuery
- Extract contents from HTML in a single line
composer require voku/simple_html_dom
##Quick Start
use voku\helper\HtmlDomParser;
require_once 'composer/autoload.php';
...
$dom = HtmlDomParser::str_get_html($str);
// or
$dom = HtmlDomParser::file_get_html($file_name);
$elems = $dom->find($elem_name);
...
##Examples