sephxd / php-readability
There is no license information available for the latest version (dev-master) of this package.
Back the fun of reading - PHP Port of Arc90′s Readability: http://graceco.de/readability/
dev-master
2015-01-22 06:09 UTC
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2025-07-05 20:00:32 UTC
README
Back the fun of reading
The PHP port of Readability.js by Arc90.
Requirements
- PHP Version >= 5
- PHP has builded with DOM(Document Object Model)
Live demo
http://graceco.de/readability/
Usage
require 'lib/Readability.inc.php';
$Readability = new Readability($html, $html_input_charset); // default charset is utf-8
$ReadabilityData = $Readability->getContent(); // throws an exception when no suitable content is found
// You can see more params by var_dump($ReadabilityData);
echo "<h1>".$ReadabilityData['title']."</h1>";
echo $ReadabilityData['content'];
PS: For Node.js port, You can check this.