zjango/phtml
最新稳定版本:1.1.1
Composer 安装命令:
composer require zjango/phtml
包简介
simple_html_dom PHP Parser for Laravel
README 文档
README
========
Installation
To install the package, simply add the following to your Laravel installation's composer.json file
"require": { "laravel/framework": "5.*", "zjango/phtml": "dev-master" },
Run the usual composer update to pull the files. Then, add the following Service Provider to your providers array in your config/app.php config.
'providers' => array( ... 'Zjango\Phtml\PhtmlServiceProvider', );
And finally add a new line to the aliases array:
'Phtml' => 'Zjango\Phtml\Facades\Phtml',
Usage
$html=Phtml::init('http://www.apple.com');
$as = $html->find('a');
$a = $html->find('a',0);
$a = $html->find('a',-1);
$a = $html->find('a',0); $href = $a->href(); $text = $a->text();
统计信息
- 总下载量: 101
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-04-16