PHPackages                             dayrev/summarizer - 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. dayrev/summarizer

ActiveLibrary

dayrev/summarizer
=================

Text Summarizer

v1.2.1(9y ago)3132MITPHPPHP ^7.0

Since Dec 9Pushed 7y ago1 watchersCompare

[ Source](https://github.com/dayrev/summarizer)[ Packagist](https://packagist.org/packages/dayrev/summarizer)[ Docs](https://bitbucket.org/dayrev/summarizer)[ RSS](/packages/dayrev-summarizer/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (5)Versions (6)Used By (0)

Summarizer
==========

[](#summarizer)

[![Build Status](https://camo.githubusercontent.com/fd9636da43261823770cbddbdfd9b7624e6b2c5baa4d797c05e93d7b8fe379df/68747470733a2f2f7472617669732d63692e6f72672f6461797265762f73756d6d6172697a65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dayrev/summarizer)[![Coverage Status](https://camo.githubusercontent.com/d2359756c6c7cdda0547f4f6b848e53f031f379a2a12ff479aedb401b760582d/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6461797265762f73756d6d6172697a65722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/dayrev/summarizer?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/520e6d6c080bddadc20a9efe5e0a227ba805d14c7aa0e460db7c834abfbb460b/68747470733a2f2f706f7365722e707567782e6f72672f6461797265762f73756d6d6172697a65722f762f737461626c652e706e67)](https://packagist.org/packages/dayrev/summarizer)

Overview
--------

[](#overview)

Summarizer provides an elegant interface to summarize text using a variety of third-party providers.

**Supported Providers:**

- DayRev (local)
- [Smmry](https://github.com/dayrev/smmry-sdk-php)

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

[](#installation)

Run the following [composer](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx) command to add the package to your project:

```
composer require dayrev/summarizer

```

Alternatively, add `"dayrev/summarizer": "^1.0"` to your composer.json file.

Usage
-----

[](#usage)

```
$summarizer = DayRev\Summarizer\Provider::instance('smmry', ['api_key' => 'YOURKEYHERE']);
$content = $summarizer->summarize($text);
```

Tests
-----

[](#tests)

To run the test suite, run the following commands from the root directory:

```
composer install
vendor/bin/phpunit -d smmry_api_key=YOUR_SMMRY_API_KEY

```

> **Note:** A valid Smmry API key is required when running the integration tests.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~28 days

Total

5

Last Release

3331d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.5.0

1.1.0PHP ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/45855ca47dca22521841f5356ed50f8d9e2158ceb89d7e85fba660f55fb99525?d=identicon)[dsposito](/maintainers/dsposito)

---

Top Contributors

[![dsposito](https://avatars.githubusercontent.com/u/1553251?v=4)](https://github.com/dsposito "dsposito (48 commits)")

---

Tags

phpsmmrysummarizersummarytext-summarizationphpsummarysummarizationsummarizersmmry

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/dayrev-summarizer/health.svg)

```
[![Health](https://phpackages.com/badges/dayrev-summarizer/health.svg)](https://phpackages.com/packages/dayrev-summarizer)
```

###  Alternatives

[php-science/textrank

TextRank (automatic text summarization) for PHP.

2461.7M3](/packages/php-science-textrank)[pestphp/pest-plugin-stressless

Stressless plugin for Pest

67792.6k16](/packages/pestphp-pest-plugin-stressless)

PHPackages © 2026

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