PHPackages                             koolreport/statistics - 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. koolreport/statistics

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

koolreport/statistics
=====================

Provide various statistical measures for data

1.2.0(6y ago)3156.6k—2%MITPHP

Since May 9Pushed 4y ago2 watchersCompare

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

READMEChangelog (3)DependenciesVersions (6)Used By (0)

Introduction
============

[](#introduction)

Talking about data, we also talk about statistics because we learn about data through statistics. The `Statistics` package allows you to compute basic and advanced statistical measures for columns of your data. The basic measures could be `min`, `max`, `mean`, `median`, etc. The advanced measures are, for example, `lowerQuartile`, `popStdDeviation` and others.

Installation
============

[](#installation)

### By downloading .zip file

[](#by-downloading-zip-file)

1. [Download](https://www.koolreport.com/packages/statistics)
2. Unzip the zip file
3. Copy the folder `statistics` into `koolreport` folder so that look like below

```
koolreport
├── core
├── statistics
```

### By composer

[](#by-composer)

```
composer require koolreport/statistics

```

Documentation
=============

[](#documentation)

Quick start
-----------

[](#quick-start)

In your report's setup page, use the process `\koolreport\statistics\Statistics` with an array parameter in the type of '{{statistical measure}}' =&gt; '{{array of column names}}'

```

```

Properties
----------

[](#properties)

The package supports the following statistical measures:

namedescription`min`Returns the first minimum value of a data series.`max`Returns the first maximum value of a data series.`mode`Returns the first most common value of a data series.`mean`Returns the average value of a data series.`median`Returns the middle value that divides a data series into 2 equal halves when ordering.`lowerQuartile`Returns the first quartile of the quartiles that divides a data series into 4 equal group when ordering. The second quartile is the median.`upperQuartile`Returns the third quartile.`percentile_X`Returns the value that X percentage of a data series fall below when ordering. X is an integer from 0 to 100.`meanDeviation`Returns the mean absolute deviation value of a data series in the formula of Sum of absolute(elementValue - mean) / length of data series.`popStdDeviation`Returns the population standard deviation value of a data series in the formula of Square root of (sum of square(elementValue - mean) / length of data series).`samStdDeviation`Returns the sample standard deviation value of a data series in the formula of Square root of (sum of square(elementValue - mean) / (length of data series - 1)).Support
=======

[](#support)

Please use our forum if you need support, by this way other people can benefit as well. If the support request need privacy, you may send email to us at ****.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 57.1% 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 ~26 days

Total

3

Last Release

2514d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a27c60d0b76ca63f2216334e1e7668bff2b75ef9ffcc601855d738f29e17dab?d=identicon)[koolreport](/maintainers/koolreport)

---

Top Contributors

[![dongnl](https://avatars.githubusercontent.com/u/5791383?v=4)](https://github.com/dongnl "dongnl (4 commits)")[![tuananhnghiem](https://avatars.githubusercontent.com/u/7497712?v=4)](https://github.com/tuananhnghiem "tuananhnghiem (3 commits)")

---

Tags

phpstatisticsmaxminPHP Reporting Frameworkphp reprting toolsmysql reporting toolsmodemeanpercentilemedianlowerQuartileupperQuartilemeanDeviationstdDeviation

### Embed Badge

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

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

###  Alternatives

[rubix/tensor

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

2751.4M5](/packages/rubix-tensor)[koolreport/querybuilder

Create query by php code

10164.8k1](/packages/koolreport-querybuilder)

PHPackages © 2026

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