Skip to content

Tuxion/php-readability

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Readability Library

Readability.js by Arc90 ported to PHP.

PS: for Node.js port, pls check this.

Requirements

Live demo

http://lab.gracecode.com/readability/

Example

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

echo "<h1>".$ReadabilityData['title']."</h1>";
echo $ReadabilityData['content'];

About

Back the fun of reading - PHP Port of Arc90′s Readability

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 67.2%
  • CSS 32.8%