Back the fun of reading - PHP Port of Arc90′s Readability
Switch branches/tags
Nothing to show
Clone or download
feelinglucky Merge pull request #18 from feelinglucky/develop
Merge pull request #17 from feelinglucky/master
Latest commit 231a589 May 9, 2017

PHP Readability Library

If you want to use an up-to-date version of this algorithm,check this newer project:

Back the fun of reading

The PHP port of Readability.js by Arc90.


Live demo


require 'lib/';

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