tdebatty/php-simple-html-dom-parser
Composer 安装命令:
composer require tdebatty/php-simple-html-dom-parser
包简介
Composer adaptation of: A HTML DOM parser written in PHP5+ let you manipulate HTML in a very easy way! Require PHP 5+. Supports invalid HTML. Find tags on an HTML page with selectors just like jQuery. Extract contents from HTML in a single line.
README 文档
README
Version 1.5.2
Adaptation for Composer and PSR-0 of:
A HTML DOM parser written in PHP5+ let you manipulate HTML in a very easy way! Require PHP 5+. Supports invalid HTML. Find tags on an HTML page with selectors just like jQuery. Extract contents from HTML in a single line.
http://simplehtmldom.sourceforge.net/
Install
composer require tdebatty/php-simple-html-dom-parser
Usage
use tdebatty\PhpSimple\HtmlDomParser; $dom = HtmlDomParser::str_get_html($str); // or $dom = HtmlDomParser::file_get_html($file_name); $elems = $dom->find($elem_name);
统计信息
- 总下载量: 482
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-05-19