PHPackages                             numphp/numphp - 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. numphp/numphp

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

numphp/numphp
=============

Mathematical PHP library for scientific computing

v1.2.0(6y ago)144106.2k—9%17[2 issues](https://github.com/NumPHP/NumPHP/issues)1MITPHPPHP &gt;=5.4

Since Jan 15Pushed 6y ago13 watchersCompare

[ Source](https://github.com/NumPHP/NumPHP)[ Packagist](https://packagist.org/packages/numphp/numphp)[ Docs](http://numphp.org/)[ RSS](/packages/numphp-numphp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (11)Used By (1)

NumPHP
======

[](#numphp)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9088f75d3d46fa4f7cc455461114f8f49b11b3504386a46aadf1a8de7376ff6f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4e756d5048502f4e756d5048502e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/NumPHP/NumPHP)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/4a96e0bf7fd9ac59b9011e8fe6223b5edbcbf2ed8666ac3380957b50e9b9b042/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4e756d5048502f4e756d5048502f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/NumPHP/NumPHP)[![Coverage Status](https://camo.githubusercontent.com/ae73d7530ceba80e22797aa42da40f44cc2e6dd5b5fe0dbc32286fff434ca85b/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f4e756d5048502f4e756d5048502f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/r/NumPHP/NumPHP?branch=master)[![Total Downloads](https://camo.githubusercontent.com/079b596435fe589907f53ff0bca8f39168351cc445af151b39511ff4b8551931/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f4e756d5048502f4e756d5048502e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/NumPHP/NumPHP)[![Dependencies](https://camo.githubusercontent.com/a74c67f08be89b9344c2b316f688d675d1c59d15ed96e88c90af74e83934e398/68747470733a2f2f696d672e736869656c64732e696f2f6c6962726172696573696f2f6769746875622f4e756d5048502f4e756d5048502e7376673f7374796c653d666c61742d737175617265)](https://libraries.io/packagist/numphp%2Fnumphp)

> **Note:** The development of NumPHP 2 has started completely from scratch. NumPHP 1.1 can be found at branch [1.1](https://github.com/NumPHP/NumPHP/tree/1.1).

NumPHP is a mathematical PHP library for scientific computing. Advanced matrix arithmetic for PHP. More information under [numphp.org](https://numphp.org/).

Install
-------

[](#install)

Via Composer

```
$ composer require numphp/numphp
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Gordon Lesti](https://gordonlesti.com)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity48

Moderate usage in the ecosystem

Community17

Small or concentrated contributor base

Maturity64

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

Recently: every ~437 days

Total

10

Last Release

2386d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d01364e83d0fef269c010ad3064eac8f5be9ee6f57e6904d647447c32d9ca3bc?d=identicon)[gordonlesti](/maintainers/gordonlesti)

---

Top Contributors

[![GordonLesti](https://avatars.githubusercontent.com/u/1677744?v=4)](https://github.com/GordonLesti "GordonLesti (253 commits)")

---

Tags

complex-numberslinear-algebramathmatrixnumericvectormatrixnumericlinalg

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[markbaker/matrix

PHP Class for working with matrices

1.5k279.7M38](/packages/markbaker-matrix)[markrogoyski/math-php

Math Library for PHP. Features descriptive statistics and regressions; Continuous and discrete probability distributions; Linear algebra with matrices and vectors, Numerical analysis; special mathematical functions; Algebra

2.4k7.1M40](/packages/markrogoyski-math-php)[spicyweb/craft-neo

A Matrix-like field type with block hierarchy

395798.1k10](/packages/spicyweb-craft-neo)[rubix/tensor

A library and extension that provides objects for scientific computing in PHP.

2751.4M5](/packages/rubix-tensor)[sciphp/numphp

PHP library for scientific computing.

6618.9k](/packages/sciphp-numphp)[mcordingley/linearalgebra

Matrix math for PHP.

85146.3k1](/packages/mcordingley-linearalgebra)

PHPackages © 2026

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