php-readability

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

  • Owner: mingcheng/php-readability
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

PHP Readability Library

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

https://github.com/andreskrey/readability.php

Back the fun of reading

The PHP port of Readability.js by Arc90.

Requirements

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.

Main metrics

Overview
Name With Ownermingcheng/php-readability
Primary LanguagePHP
Program languageCSS (Language Count: 4)
Platform
License:MIT License
所有者活动
Created At2011-02-17 06:43:33
Pushed At2017-05-09 03:16:12
Last Commit At2017-05-09 11:16:11
Release Count2
Last Release Name0.21 (Posted on 2014-02-12 18:33:23)
First Release Name0.20 (Posted on 2014-02-08 11:42:42)
用户参与
Stargazers Count518
Watchers Count46
Fork Count129
Commits Count40
Has Issues Enabled
Issues Count12
Issue Open Count0
Pull Requests Count6
Pull Requests Open Count0
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private