codefarm/grabber
Composer 安装命令:
composer require codefarm/grabber
包简介
customizable package to grab data from webpage using php
README 文档
README
This customizable package can extract data from website and html files using php. Here's how you can use it:
Installation
You can install the package via composer:
composer require codefarm/grabber
Usage
Here are a few short examples of what you can do:
$parser = new HtmlParser($path_to_html_file); $parser->getData();
It can also a string html:
$parser = new HtmlParser($string_html); $parser->getData();
Or you can even add even custom pattern:
use codefarm\Grabber\Facade\Grabber; Grabber::fields([ CustomPattern::class ]); $parser = new HtmlParser($string_html); $parser->getData();
Testing
composer test
License
The MIT License (MIT).
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-01-09