sters/extract-content

提取网页文章

资助包维护!
sters

0.0.3 2017-12-08 01:16 UTC

This package is auto-updated.

Last update: 2024-09-25 15:28:29 UTC


README

CircleCI

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...

原始版本

http://labs.cybozu.co.jp/blog/nakatani/2007/09/web_1.html