pribolshoy/parseroid
最新稳定版本:v0.1.0-alpha.1
Composer 安装命令:
composer require pribolshoy/parseroid
包简介
Public library
README 文档
README
Package for parsing different types of resources (html pages, xml etc.).
This package is not ready solution for all resource types.
It just giving you necessary abstract functional for constructing you own needs. But in a way that makes it easy for you to do.
Simple example:
<?php
require_once "vendor/autoload.php";
$handler = (new \pribolshoy\parseroid\factories\HandlerFactory())
->create('html_page_handler', [
'parser_name' => 'google_parser',
'resource' => 'https://www.google.com/search?q=php+it%27s+amazing',
]);
$result = $handler->getItem();
print_r($result);
//<pre>Array
//(
// [0] => Array
// (
// [input_text] => php it's amazing
// )
//
//)
//</pre>
?>
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2023-07-12