PHPackages                             devfym/intelliphp - 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. devfym/intelliphp

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

devfym/intelliphp
=================

Machine Learning for PHP.

0.0.2(6y ago)112MITPHPPHP ^7.1.3CI failing

Since Jan 2Pushed 6y ago2 watchersCompare

[ Source](https://github.com/devfym/intelliphp)[ Packagist](https://packagist.org/packages/devfym/intelliphp)[ RSS](/packages/devfym-intelliphp/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

IntelliPHP
==========

[](#intelliphp)

[![PHP from Packagist](https://camo.githubusercontent.com/99fa8c6ee9760e6d15b9f5a31a2e3c431ffa8a78fbaacccc50060fc0c977b7f0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f64657666796d2f696e74656c6c69706870)](https://camo.githubusercontent.com/99fa8c6ee9760e6d15b9f5a31a2e3c431ffa8a78fbaacccc50060fc0c977b7f0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f64657666796d2f696e74656c6c69706870)[![Latest Stable Version](https://camo.githubusercontent.com/bada775e077566e120b34c9b4ca25a2b97b8367cd3d57681481a2b90f94066e2/68747470733a2f2f706f7365722e707567782e6f72672f64657666796d2f696e74656c6c697068702f762f737461626c65)](https://packagist.org/packages/devfym/intelliphp)[![Total Downloads](https://camo.githubusercontent.com/a487bd3e50dc6318ba8340cab0ea28725be7e0fa55b9141315c6534e897660e1/68747470733a2f2f706f7365722e707567782e6f72672f64657666796d2f696e74656c6c697068702f646f776e6c6f616473)](https://packagist.org/packages/devfym/intelliphp)[![Build Status](https://camo.githubusercontent.com/0b8a4d92a5e980718dd139fa1fb102c79e42bc844635ea88ff707223bc2b10c5/68747470733a2f2f7472617669732d63692e636f6d2f64657666796d2f696e74656c6c697068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/devfym/intelliphp)[![Coverage Status](https://camo.githubusercontent.com/6949f2865f006c7f56daa3cacc25ebf2ef02f1a80c47ce7497cfb197cd9ffcf7/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f64657666796d2f696e74656c6c697068702f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/devfym/intelliphp?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/c9e86556d99501996aeea6175d6b5d55e03946cf6a7248f9ebe629595aee19ed/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f64657666796d2f696e74656c6c697068702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/devfym/intelliphp/?branch=master)[![Documentation Status](https://camo.githubusercontent.com/8caf4772fd3565c05523f204049939fcbf0e89e0aac08e39747f3a0db3509010/68747470733a2f2f72656164746865646f63732e6f72672f70726f6a656374732f696e74656c6c697068702f62616467652f3f76657273696f6e3d6c6174657374)](https://intelliphp.readthedocs.io/en/latest/?badge=latest)[![License](https://camo.githubusercontent.com/8be63809426774f6ca13f31abbcbc06925d5e6caf609bd7cec0d575900778a4c/68747470733a2f2f706f7365722e707567782e6f72672f64657666796d2f696e74656c6c697068702f6c6963656e7365)](https://packagist.org/packages/devfym/intelliphp)

Composer Library for Machine Learning.

Requirements
------------

[](#requirements)

Currently it requires PHP Version &gt;= 7.2

How to install package
----------------------

[](#how-to-install-package)

`composer require devfym/intelliphp`

Features
--------

[](#features)

- Data
    - [DataFrame](docs/Data/DataFrame.rst)
    - [Series](docs/Data/Series.rst)
- Math (method in DataFrame / Series)
    - Min, Max, Mean, Median
    - Standard Deviation
    - Variance
    - Quartile
- Statistic
    - Correlation
        - Pearson Correlation
        - Spearman Rank Correlation
        - Kendall Rank Correlation
    - Differences
        - F Test
    - Activation Function
        - ReLU
        - Sigmoid
        - Softmax
    - Validation
        - Mean Squared Error (MSE)
        - Root Mean Squared Error (RMSE)
- Regression
    - [Linear Regression](docs/Regression/LinearRegression.rst)

Examples
--------

[](#examples)

#### DataFrame

[](#dataframe)

```
// Call autoload to import Composer packages
require_once __DIR__ . '/vendor/autoload.php';

// Import DataFrame
use devfym\Data\DataFrame;

// Create new instance
$df = new DataFrame();

// Create sample array-formatted data
$data = [
    'name' => ['aaron','bambi','celine','dennise'],
    'age'  => [12, 14, 16, 18]
];

// set data into DataFrame
$df->readArray($data);

// Get Columns
$df->getColumns();

// Get Index
$df->getIndex();

// Get array of Name
$df->name->all();

// Get array of Age
$df->age->all();

// Get Mean of Age
$df->age->mean();
```

#### Linear Regression

[](#linear-regression)

```
// Call autoload to import Composer packages
require_once __DIR__ . '/vendor/autoload.php';

// Import LinearRegression
use devfym\Regression\LinearRegression;

// Create new instance
$linear = new LinearRegression();

// Create Train Data
$x_train = [2, 4, 6, 8, 10];
$y_train = [1, 3, 5, 7, 9];

// Set Train Data into instance via setTrain(@array predictors, @array outcomes) method.
$linear->setTrain($x_train, $y_train);

// Generate LinearRegression Model.
$linear->model();

// Predict Value by passing Predictor via predict(@float predictor) method.
$linear->predict(7);

// it will return a value of 6.
```

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.2% 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 ~4 days

Total

2

Last Release

2369d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/34326528?v=4)[Yasunori Fukushima](/maintainers/devfym)[@devfym](https://github.com/devfym)

---

Top Contributors

[![devfym](https://avatars.githubusercontent.com/u/34326528?v=4)](https://github.com/devfym "devfym (110 commits)")[![fym2558](https://avatars.githubusercontent.com/u/20680215?v=4)](https://github.com/fym2558 "fym2558 (2 commits)")

---

Tags

composer-librarymachine-learningphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/devfym-intelliphp/health.svg)

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

PHPackages © 2026

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