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

This package is not auto-updated.

Last update: 2024-04-13 15:28:37 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();


?>