camilord / php-simple-html-dom-parser
Composer wrapper for PHP Simple HTML DOM Parser from sourceforge.net
1.1
2024-01-15 23:57 UTC
Requires
- php: >=5.2|>=7.4|>=8.0
- ext-mbstring: *
README
Wrapper Version: 1.x
Wrapper for PHP Simple HTML DOM Parser
to work on composer
PHP Simple HTML DOM Parser
Version 1.9.1
A simple PHP HTML DOM parser written in PHP5+, supports invalid HTML, and provides a very easy way to find, extract and modify the HTML elements of the dom. jquery like syntax allow sophisticated finding methods for locating the elements you care about.
http://simplehtmldom.sourceforge.net/
Installation
cast a command:
php composer.phar require camilord/php-simple-html-dom-parser
or
composer require camilord/php-simple-html-dom-parser
or add to composer.json
"require": { "camilord/php-simple-html-dom-parser": "^1.0" }
Usage
use camilord\PhpSimpleHtmlDomParser\HtmlDomParser; ... $dom = HtmlDomParser::str_get_html($str); or $dom = HtmlDomParser::file_get_html($file_name); $elems = $dom->find('small.count'); ...