tekintian/phphtmlparser

html parser, PHP Simple HTML DOM Parser with namespace and PHP psr-4 compatible

1.0.0 2020-06-28 12:57 UTC

This package is auto-updated.

Last update: 2024-11-28 22:39:20 UTC


README

PHP Simple HTML DOM Parser

Install

composer require tekintian/phphtmlparser

Usage

use tekintian\phphtmlparser\HtmlDomParser;

...
$dom = HtmlDomParser::str_get_html( $str );
or
$dom = HtmlDomParser::file_get_html( $file_name );

$elems = $dom->find($elem_name);
...