https://github.com/sters/extract-content
ExtractContent for PHP7. Extract web article tool.
https://github.com/sters/extract-content
article-extractor extract-content php
Last synced: 5 months ago
JSON representation
ExtractContent for PHP7. Extract web article tool.
- Host: GitHub
- URL: https://github.com/sters/extract-content
- Owner: sters
- License: mit
- Created: 2017-11-29T02:26:04.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-11-25T04:15:18.000Z (over 6 years ago)
- Last Synced: 2025-08-06T17:30:49.416Z (11 months ago)
- Topics: article-extractor, extract-content, php
- Language: PHP
- Homepage:
- Size: 23.4 KB
- Stars: 3
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ExtractContent
[](https://circleci.com/gh/sters/extract-content/tree/master)
ExtractContent for PHP7.
## Installation
Install Plugin using composer.
```
composer require "sters/extract-content:dev-master"
```
## Usage
```
use ExtractContent\ExtractContent;
$content = file_get_contents('https://en.wikipedia.org/wiki/PHPUnit');
$extractor = new ExtractContent($content);
$result = $extractor->analyse();
```
Output example.
```
PHPUnit is based on the idea that developers should be able to find mistakes in their newly committed code quickly and assert...
```
## Original versions
[http://labs.cybozu.co.jp/blog/nakatani/2007/09/web_1.html](http://labs.cybozu.co.jp/blog/nakatani/2007/09/web_1.html)