sters / extract-content
提取网页文章
0.0.3
2017-12-08 01:16 UTC
Requires
- php: ~7.0
Requires (Dev)
- phpunit/phpunit: ~6.4
This package is auto-updated.
Last update: 2024-09-25 15:28:29 UTC
README
ExtractContent for PHP7.
安装
使用composer安装插件。
composer require "sters/extract-content:dev-master"
用法
use ExtractContent\ExtractContent;
$content = file_get_contents('https://en.wikipedia.org/wiki/PHPUnit');
$extractor = new ExtractContent($content);
$result = $extractor->analyse();
输出示例。
PHPUnit is based on the idea that developers should be able to find mistakes in their newly committed code quickly and assert...