keltstr/yii2-simplehtmldom
Composer 安装命令:
composer require keltstr/yii2-simplehtmldom
包简介
"PHP Simple HTML DOM Parser" rev.210 adapted to Yii2 psr-4(namespace autoload class) based on serhatozles/yii2-simplehtmldom(rev.196)
README 文档
README
"Simple HTML Dom"(PHP Simple HTML DOM Parser) http://simplehtmldom.sourceforge.net/ library rev.210 adapted to yii2 extension class autoload(psr-4 from \vendor\keltstr\simplehtmldom)
Installation
The preferred way to install this extension is through composer. Either run
php composer.phar require --prefer-dist keltstr/yii2-simplehtmldom "dev-master"
or (if composer installed to OS)
composer require --prefer-dist keltstr/yii2-simplehtmldom "dev-master"
OR add(code below) to the require section of your composer.json file and run command Install(Composer)
"keltstr/yii2-simplehtmldom": "dev-master"
Usage
Once the extension is installed, simply use it in your code by :
<?= \keltstr\simplehtmldom\SimpleHTMLDom::file_get_html('http://google.com'); ?>```
OR use alias namespace by use
<?php use keltstr\simplehtmldom\SimpleHTMLDom as SHD $html_source = SHD::file_get_html('http://google.com'); ?>
About the functional read on the official website: http://simplehtmldom.sourceforge.net/
统计信息
- 总下载量: 182.19k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: WTFPL
- 更新时间: 2014-12-23