heriw / laravel-simple-html-dom-parser
Laravel simple html dom parser
v1.9.1
2023-09-24 09:18 UTC
Requires
- php: >=5.6.0
- ext-mbstring: *
README
Simple HTML DOM Parser for Laravel
See Documentation https://simplehtmldom.sourceforge.io
Requirement
- PHP Version : minimum 5.6.0
- PHP Extensions : iconv, mbstring
- PHP INI Settings : allow_url_fopen = On
Install
composer require heriw/laravel-simple-html-dom-parser
Usage
use Heriw\LaravelSimpleHtmlDomParser\HtmlDomParser; ... $html = HtmlDomParser::file_get_html($file); or $html = HtmlDomParser::str_get_html($str); $elements = $html->find($element_name); ...