PHPackages                             muqsit/php-thinkit - 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. muqsit/php-thinkit

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

muqsit/php-thinkit
==================

Think-Kit is a library that offers a generic machine learning implementation.

90PHP

Since Mar 4Pushed 3y ago2 watchersCompare

[ Source](https://github.com/Muqsit/php-thinkit)[ Packagist](https://packagist.org/packages/muqsit/php-thinkit)[ RSS](/packages/muqsit-php-thinkit/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

php-thinkit
===========

[](#php-thinkit)

[![CI](https://github.com/Muqsit/php-thinkit/actions/workflows/ci.yml/badge.svg)](https://github.com/Muqsit/php-thinkit/actions/workflows/ci.yml)

Think-Kit is a library that offers a generic machine learning implementation.

Example Usage
-------------

[](#example-usage)

The following is the equivalent of [this python code](https://gist.github.com/Muqsit/2b85711f8b8d7cad63b764c201432693):

```
$training_input = Matrix::create([
    [0, 0, 1],
    [1, 1, 1],
    [1, 0, 1],
    [0, 0, 1]
]);
$training_output = Matrix::create([[0, 1, 1, 0]])->transpose();

$model = SimpleNeuralNetworkModel::create(iterations: 10_000);
$model->train($training_input, $training_output);
$model->predict(Matrix::create([[1, 0, 0]])); // [[0.99991188]]
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/247134f60bf8c5c7c8a2f06b0ecea431a052614283aac5093b57bde51039e34a?d=identicon)[muqsit](/maintainers/muqsit)

---

Top Contributors

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

---

Tags

artificial-intelligencelibrarymachine-learningphp

### Embed Badge

![Health badge](/badges/muqsit-php-thinkit/health.svg)

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

PHPackages © 2026

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