PHPackages                             systream/knn - 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. systream/knn

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

systream/knn
============

k-Nearest Neighbors algorithm implementation in php for classification and regression

1.0.2(9y ago)23682MITPHPPHP &gt;=5.4.0

Since Jun 5Pushed 9y ago1 watchersCompare

[ Source](https://github.com/systream/knn)[ Packagist](https://packagist.org/packages/systream/knn)[ RSS](/packages/systream-knn/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

knn
===

[](#knn)

k-Nearest Neighbors algorithm implementation in php for classification and regression

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

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

Total

3

Last Release

3391d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c5ea6e7d8143a1fba541e1f41419cf36a4f970806d4bd91094d3b46177aea6d?d=identicon)[systream](/maintainers/systream)

---

Top Contributors

[![systream](https://avatars.githubusercontent.com/u/1583029?v=4)](https://github.com/systream "systream (13 commits)")

---

Tags

classificationAlgorithmregressionknnnearest neighbors

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/systream-knn/health.svg)

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

###  Alternatives

[rubix/ml

A high-level machine learning and deep learning library for the PHP language.

2.2k1.5M28](/packages/rubix-ml)[donatello-za/rake-php-plus

Yet another PHP implementation of the Rapid Automatic Keyword Extraction algorithm (RAKE).

269909.0k11](/packages/donatello-za-rake-php-plus)[mcordingley/regression

Regression Package for PHP

89139.4k1](/packages/mcordingley-regression)[tga/simhash-php

SimHash similarities algorithm implementation for PHP 5.3

15144.3k1](/packages/tga-simhash-php)[fisharebest/algorithm

Implementation of standard algorithms in PHP.

71102.3k2](/packages/fisharebest-algorithm)[dr-que/polynomial-regression

Calculates and returns coefficients for polynomial regression.

22218.0k3](/packages/dr-que-polynomial-regression)

PHPackages © 2026

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