PHPackages                             ahadabasi/php-readability - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ahadabasi/php-readability

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ahadabasi/php-readability
=========================

Automatic article extraction from HTML

01PHP

Since Jun 26Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ahadabasi/php-readability)[ Packagist](https://packagist.org/packages/ahadabasi/php-readability)[ RSS](/packages/ahadabasi-php-readability/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

PHP Readability ================ This is a PHP port of Arc90's original Javascript version of Readability. (Arc90 has since relaunched the project.) For instructions on how to use this, please see For a more flexible and robust solution to article extraction, take a look at \[Full-Text RSS\]() - it makes use of PHP Readability, but offers much more. Feel free to fork this and change/improve it. I would love to see your results. Please do share them and I'll consider pulling them in. PHP Readability is licensed under the Apache License, Version 2.0 (the same license as the original JS version). The original Javascript version can be found here: (readability.js) ### Donate If you find this useful, please consider purchasing \[Full-Text RSS\]() or donating via \[Gittip\]() ### Simple example cleanRepair(); $html = $tidy-&gt;value; } // give it to Readability $readability = new Readability($html, $url); // print debug output? // useful to compare against Arc90's original JS version - // simply click the bookmarklet with FireBug's console window open $readability-&gt;debug = false; // convert links to footnotes? $readability-&gt;convertLinksToFootnotes = true; // process it $result = $readability-&gt;init(); // does it look like we found what we wanted? if ($result) { echo "== Title =====================================\\n"; echo $readability-&gt;getTitle()-&gt;textContent, "\\n\\n"; echo "== Body ======================================\\n"; $content = $readability-&gt;getContent()-&gt;innerHTML; // if we've got Tidy, let's clean it up for output if (function\_exists('tidy\_parse\_string')) { $tidy = tidy\_parse\_string($content, array('indent'=&gt;true, 'show-body-only' =&gt; true), 'UTF8'); $tidy-&gt;cleanRepair(); $content = $tidy-&gt;value; } echo $content; } else { echo 'Looks like we couldn\\'t find the content. :('; }# php-readability

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/f3f23ebcef1008207791d948dc8da0737e70a4ff83fea5e3f5857d71817963e1?d=identicon)[aarad7](/maintainers/aarad7)

### Embed Badge

![Health badge](/badges/ahadabasi-php-readability/health.svg)

```
[![Health](https://phpackages.com/badges/ahadabasi-php-readability/health.svg)](https://phpackages.com/packages/ahadabasi-php-readability)
```

###  Alternatives

[asdh/laravel-flatpickr

A laravel clone of the javascript flatpickr package

6441.3k](/packages/asdh-laravel-flatpickr)[run_as_root/integrity-checker

Integrity checker for Composer based projects

3130.0k](/packages/run-as-root-integrity-checker)[minter/minter-php-sdk

277.5k](/packages/minter-minter-php-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
