aboustayyef / extractor
a wrapper class around Feeling Lucky's PHP Readability to extract html, text and title from a URL
dev-master
2015-06-20 12:38 UTC
Requires (Dev)
- phpspec/phpspec: 2.2.*
This package is not auto-updated.
Last update: 2024-11-09 18:22:13 UTC
README
#Text
This is a utility class for extracting text from urls. It is a simple wrapper around the (no longer updated) PHP readability class by fivefilters.
##Usage
<?php
use Aboustayyef\Extractor;
$document = new Extractor("http://source/to/document.html");
$title = $document->getTitle();
$text = $document->getText();
?>