PHPackages                             byjg/text-classifier - 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. [Search &amp; Filtering](/categories/search)
4. /
5. byjg/text-classifier

ActiveLibrary[Search &amp; Filtering](/categories/search)

byjg/text-classifier
====================

A PHP text classifier supporting binary spam filtering (Robinson-Fisher Bayesian) and multi-class Naive Bayes classification, with optional LLM-assisted active learning fallback.

6.0.0(2mo ago)90PHP &gt;=8.3 &lt;8.6

Since May 14Compare

[ Source](https://github.com/byjg/php-text-classifier)[ Packagist](https://packagist.org/packages/byjg/text-classifier)[ Docs](https://github.com/byjg/b8)[ GitHub Sponsors](https://github.com/byjg)[ RSS](/packages/byjg-text-classifier/feed)WikiDiscussions Synced 1mo ago

READMEChangelogDependencies (8)Versions (15)Used By (0)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/byjg/php-text-classifier).

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance87

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity88

Battle-tested with a long release history

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 ~248 days

Recently: every ~805 days

Total

14

Last Release

63d ago

Major Versions

1.1.0 → 6.0.x-dev2026-03-07

PHP version history (3 changes)1.0.0PHP &gt;=5.4.0

1.1.0PHP &gt;=5.6.0

6.0.x-devPHP &gt;=8.3 &lt;8.6

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/981924?v=4)[Joao Gilberto Magalhaes](/maintainers/byjg)[@byjg](https://github.com/byjg)

---

Tags

filterspamclassificationbayesianllmnaive bayestext-classifieractive-learning

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/byjg-text-classifier/health.svg)

```
[![Health](https://phpackages.com/badges/byjg-text-classifier/health.svg)](https://phpackages.com/packages/byjg-text-classifier)
```

###  Alternatives

[clue/stream-filter

A simple and modern approach to stream filtering in PHP

1.7k261.7M7](/packages/clue-stream-filter)[laminas/laminas-filter

Programmatically filter and normalize data and files

9428.0M148](/packages/laminas-laminas-filter)[friendsofcake/search

CakePHP Search plugin using PRG pattern

1742.0M37](/packages/friendsofcake-search)[outl1ne/nova-input-filter

An input filter for Laravel Nova

24822.7k](/packages/outl1ne-nova-input-filter)[vria/nodiacritic

Tiny helper function that removes all diacritical signs from characters

113.1M13](/packages/vria-nodiacritic)[sproutcms/cms

Enterprise content management and framework

241.6k4](/packages/sproutcms-cms)

PHPackages © 2026

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