PHPackages                             samsara/fermat-stats - 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. samsara/fermat-stats

ActiveLibrary

samsara/fermat-stats
====================

A module for the Fermat math library which adds statistics function.

v1.0.0(4y ago)3981GPL-2.0-or-laterPHP

Since Jun 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/SamsaraLabs/FermatStats)[ Packagist](https://packagist.org/packages/samsara/fermat-stats)[ Docs](https://jordanrl.github.io/Fermat/)[ GitHub Sponsors](https://github.com/sponsors/JordanRL)[ RSS](/packages/samsara-fermat-stats/feed)WikiDiscussions master Synced 2d ago

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

Fermat Stats
============

[](#fermat-stats)

[![Build Status](https://camo.githubusercontent.com/7c2977d69cbce2a63db4097f6d8cbc0e929f000cc8beb18462a4ad2348c13982/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f53616d736172614c6162732f4665726d617453746174732f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/SamsaraLabs/FermatStats/build-status/master) [![Code Coverage](https://camo.githubusercontent.com/4469c03d2bc6640374d47ee97951ceac8989738ebc669df66c04cce0b96066aa/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f53616d736172614c6162732f4665726d617453746174732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/SamsaraLabs/FermatStats?branch=master) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/3bea29d86c1a00c4d2d1de900d8b28dcd53a3cf0f5786ae92405eabe60f718a8/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f53616d736172614c6162732f4665726d617453746174732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/SamsaraLabs/FermatStats/?branch=master) [![Latest Stable Version](https://camo.githubusercontent.com/3a661da76c117a374e7e2b080be4360b1c3fec448293478a32495b793a0e9227/68747470733a2f2f706f7365722e707567782e6f72672f73616d736172612f6665726d61742d73746174732f762f737461626c65)](https://packagist.org/packages/samsara/fermat-stats) [![Total Downloads](https://camo.githubusercontent.com/ce161b4f29cd6eeb0bde57810de1b84d6208835e79785b78aec7927ca860ef23/68747470733a2f2f706f7365722e707567782e6f72672f73616d736172612f6665726d61742d73746174732f646f776e6c6f616473)](https://packagist.org/packages/samsara/fermat-stats) [![License](https://camo.githubusercontent.com/60d3fe88210ed679a693601137fec42b748869fc8e240b636af4a0ff972a61cb/68747470733a2f2f706f7365722e707567782e6f72672f73616d736172612f6665726d61742d73746174732f6c6963656e7365)](https://packagist.org/packages/samsara/fermat-stats)

**This project is unit tested against 8.0, and merges are not accepted unless the tests pass.**

This is a module for the [Fermat](https://github.com/JordanRL/Fermat) math library.

Installation
------------

[](#installation)

To install, simply require the package using composer:

```
composer require samsara/fermat-stats "1.*"

```

Or include it in your `composer.json` file:

```
{
    "require": {
        "samsara/fermat-stats": "1.*"
    }
}
```

The project namespace is `Samsara\Fermat\*`. You can view the project on [Packagist](https://packagist.org/packages/samsara/fermat).

Documentation
-------------

[](#documentation)

For full documentation of all Fermat features, including its modules, please see the [full documentation](https://jordanrl.github.io/Fermat/).

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

[](#contributing)

Please ensure that pull requests meet the following guidelines:

- New files created in the pull request must have a corresponding unit test file, or must be covered within an existing test file.
- Your merge may not drop the project's test coverage below 70%.
- Your merge may not drop the project's test coverage by MORE than 5%.
- Your merge must pass Travis-CI build tests for PHP 8.X.

For more information, please see the section on [Contributing](CONTRIBUTING.md)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1781d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9334e93c0b042b391d5deb8a9ab159139607af5d91f930ad8538fd69271cf97b?d=identicon)[JordanRL](/maintainers/JordanRL)

---

Top Contributors

[![JordanRL](https://avatars.githubusercontent.com/u/2466397?v=4)](https://github.com/JordanRL "JordanRL (6 commits)")

---

Tags

mathstatsnumbersstatisticsGaussianlarge numbersbigintpoisson

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/samsara-fermat-stats/health.svg)

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

###  Alternatives

[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)[wnx/laravel-stats

Get insights about your Laravel Project

1.8k1.8M7](/packages/wnx-laravel-stats)[rubix/tensor

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

2751.4M5](/packages/rubix-tensor)[samsara/fermat

A library providing math and statistics operations for numbers of arbitrary size.

653.1k3](/packages/samsara-fermat)[drupol/phpermutations

Generators and iterators, permutations and combinations.

83706.3k5](/packages/drupol-phpermutations)[rtlopez/decimal

An object oriented immutable arbitrary-precision arithmetic library for PHP

27262.8k2](/packages/rtlopez-decimal)

PHPackages © 2026

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