SimpleHTMLDOM abstraction
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src Added doc blocks Jul 17, 2016
tests Added doc blocks Jul 17, 2016
.gitignore Initial commit Jul 17, 2016
.travis.yml Initial commit Jul 17, 2016
README.md Create README.md Jul 17, 2016
composer.json Initial commit Jul 17, 2016
phpunit.xml Initial commit Jul 17, 2016

README.md

[Unmaintained] easy-parser

SimpleHTMLDOM abstraction

Note: I made this time ago but never really used. It's not com packagist too. Feel free to fork, enhance or whatever.

Usage

use Lubien\EasyParser;

$parser = new EasyParser;

// Load
$parser->loadByFile('example.html');
// or
$parser->loadByText('<html>...');

$h1 = $parser->find("html body h1[0]");
$href = $parser->find("body a");
echo $a[0]['attr']['href']; // http://foo.com

License

MIT