Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 

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

About

SimpleHTMLDOM abstraction

Resources

Releases

No releases published
You can’t perform that action at this time.