PHPackages                             jord-jd/php-summary - 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. jord-jd/php-summary

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

jord-jd/php-summary
===================

PHP Summarization Library

v5.0.0(4mo ago)34108LGPL-3.0-onlyPHPPHP &gt;=7.1CI failing

Since Dec 9Pushed 4mo ago3 watchersCompare

[ Source](https://github.com/Jord-JD/php-summary)[ Packagist](https://packagist.org/packages/jord-jd/php-summary)[ Docs](https://github.com/Jord-JD/php-summary)[ GitHub Sponsors](https://github.com/DivineOmega)[ RSS](/packages/jord-jd-php-summary/feed)WikiDiscussions master Synced today

READMEChangelog (8)Dependencies (2)Versions (9)Used By (0)

PHP Summary
===========

[](#php-summary)

[![Build Status](https://camo.githubusercontent.com/1c9cc3bf409c18eaf4a41f856d5bf11d5bced6333f6142af6f2114294af0d0cd/68747470733a2f2f7472617669732d63692e6f72672f4a6f72642d4a442f7068702d73756d6d6172792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Jord-JD/php-summary)[![Coverage Status](https://camo.githubusercontent.com/42a497221e17222cf8bc4c32ec31c987c7208bbf528373e8f5ce2917df6c76e0/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4a6f72642d4a442f7068702d73756d6d6172792f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/Jord-JD/php-summary?branch=master)[![StyleCI](https://camo.githubusercontent.com/5db035b87e255befe1eccae18b356e53edd371ea8004e908fc420968eb86bddb/68747470733a2f2f7374796c6563692e696f2f7265706f732f34373537393430372f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/47579407)[![Packagist](https://camo.githubusercontent.com/8ed9d37021bb1984aa92bcdcfcdb1a60cebbceb2f74db0f34fd608da9486d109/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f4a6f72642d4a442f7068702d73756d6d6172792e737667)](https://camo.githubusercontent.com/8ed9d37021bb1984aa92bcdcfcdb1a60cebbceb2f74db0f34fd608da9486d109/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f4a6f72642d4a442f7068702d73756d6d6172792e737667)

A PHP library to automatically summarise text using a naive summerisation algorithm.

This summerisation algorithm in use takes the key sentence from each paragraph. It then strings these resulting sentences together to form the summary.

For more details on this algorithm, see this [blog post by Shlomi Babluki](http://thetokenizer.com/2013/04/28/build-your-own-summary-tool/).

Installation
------------

[](#installation)

Require this package, with [Composer](https://getcomposer.org/), in the root directory of your project.

```
composer require jord-jd/php-summary
```

Usage
-----

[](#usage)

To use PHP Summary, you should create a new `SummaryTool` object, passing it the text content of your article. You can then call its `getSummary` method to retrieve the shortened summary of the article.

Note: The article content must have its paragraphs seperated by two new line characters.

```
$summary = (new SummaryTool($content))->getSummary();
```

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance75

Regular maintenance activity

Popularity19

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 86.7% of commits — single point of failure

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.

###  Release Activity

Cadence

Every ~531 days

Recently: every ~720 days

Total

8

Last Release

138d ago

Major Versions

v1.1.1 → v2.0.02018-03-26

v2.0.1 → v3.0.02020-06-24

v3.0.0 → v4.0.02026-02-14

v4.0.0 → v5.0.02026-02-14

PHP version history (2 changes)1.0PHP &gt;=5.2.1

v3.0.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/c580cdf7c14898fff179cdfc1085892091d5d2f49d917873a12365af9ac77c93?d=identicon)[Jord-JD](/maintainers/Jord-JD)

---

Top Contributors

[![Jord-JD](https://avatars.githubusercontent.com/u/650645?v=4)](https://github.com/Jord-JD "Jord-JD (26 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (4 commits)")

---

Tags

php-librarysummarysummerisation-algorithmphplibrarysummarysummarizationsummarizingsummarization library

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jord-jd-php-summary/health.svg)

```
[![Health](https://phpackages.com/badges/jord-jd-php-summary/health.svg)](https://phpackages.com/packages/jord-jd-php-summary)
```

PHPackages © 2026

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