sirquy / simple-html-dom
Composer adaptation of: A HTML DOM parser written in PHP7.0+ let you manipulate HTML in a very easy way! Require PHP 7.0+. Supports invalid HTML. Find tags on an HTML page with selectors just like jQuery. Extract contents from HTML in a single line.
dev-master
2020-01-31 07:37 UTC
Requires
- php: >=7.0
- ext-mbstring: *
This package is auto-updated.
Last update: 2025-05-29 01:36:48 UTC
README
Version 1.0
Adaptation for Composer and PSR-0 of:
A HTML DOM parser written in PHP7.0+ let you manipulate HTML in a very easy way! Require PHP 7.0+. Supports invalid HTML. Find tags on an HTML page with selectors just like jQuery. Extract contents from HTML in a single line.
Install
composer.phar
"require": { "sirquy/simple-html-dom": "1.0" }
Usage
use SirQuy\PhpSimple\HtmlDomParser; ... $dom = HtmlDomParser::str_get_html( $str ); or $dom = HtmlDomParser::file_get_html( $file_name ); $elems = $dom->find($elem_name); ...