PHPackages                             sqonk/phext-datakit - 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. sqonk/phext-datakit

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

sqonk/phext-datakit
===================

Datakit is a library that assists with data analysis and research. It includes classes for working with tables of data and deriving statistical information, importing those tables from file formats such as CSV, a class wrapper with statistical methods for PHP arrays, as well as memory efficient packed arrays.

1.3.3(5mo ago)81852MITPHPPHP ^8.2CI failing

Since Apr 11Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/sqonk/phext-datakit)[ Packagist](https://packagist.org/packages/sqonk/phext-datakit)[ RSS](/packages/sqonk-phext-datakit/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (10)Dependencies (4)Versions (35)Used By (0)

PHEXT Datakit
=============

[](#phext-datakit)

[![Minimum PHP Version](https://camo.githubusercontent.com/a059fb88d3ff5fe22ed8bf35e3309c8ce74b414e8efe9cf66b7cc7a111ae78b9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344253230382d79656c6c6f77)](https://php.net/)[![License](https://camo.githubusercontent.com/e3d584625d5a65f768ca34cf2e2486fe3578f7f9f7f6c1c07548809f8ca8c0f2/68747470733a2f2f73716f6e6b2e636f6d2f6f70656e736f757263652f6c6963656e73652e737667)](license.txt)

Datakit is a library that assists with data analysis and research. It includes classes for working with tables of data and deriving statistical information, importing those tables from file formats such as CSV, a class wrapper with statistical methods for PHP arrays, as well as memory efficient packed arrays.

It also contains a small set of stand-alone functions and defined constants that import across the global namespace.

You can also combine it with [Visualise](https://github.com/sqonk/phext-visualise) to hook up real-time visual output when working from the command line.

Install
-------

[](#install)

Via Composer

```
$ composer require sqonk/phext-datakit
```

API Reference
-------------

[](#api-reference)

Please see the [API Reference](docs/api/index.md) for full documentation on each class and the available methods.

Examples
--------

[](#examples)

[Example code](examples.md) for all classes can be viewed here.

Credits
-------

[](#credits)

Theo Howell

**NOTE:** Portions of the mathematical methods are borrowed from various freely available open source projects and code snippets. Appropriate credit and links are given where applicable in the relevant sections of the code.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](license.txt) for more information.

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance72

Regular maintenance activity

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

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

Recently: every ~301 days

Total

31

Last Release

155d ago

Major Versions

0.6.4 → 1.0.02021-02-03

PHP version history (5 changes)0.3PHP ^7.3

0.5.4PHP ^7.3 || ^8.0.0

0.6.2PHP ^7.3 || ^7.4 || ^8.0

1.1.0PHP ^8

1.3.1PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![sqonk](https://avatars.githubusercontent.com/u/55817417?v=4)](https://github.com/sqonk "sqonk (363 commits)")

---

Tags

csv-importdataframe-methodsdom-scrapingmoving-averagepackedarray-methodspackedsequence-methodsstatistical-analysisvector-methodsvectormatrixdata-analysiscsv-importMatricesDataFramepacked arraypacked sequence

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/sqonk-phext-datakit/health.svg)

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

###  Alternatives

[markbaker/matrix

PHP Class for working with matrices

1.5k295.1M39](/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.4M47](/packages/markrogoyski-math-php)[rubix/tensor

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

2791.5M5](/packages/rubix-tensor)[spicyweb/craft-neo

A Matrix-like field type with block hierarchy

393808.8k10](/packages/spicyweb-craft-neo)[numphp/numphp

Mathematical PHP library for scientific computing

145111.3k1](/packages/numphp-numphp)[mcordingley/linearalgebra

Matrix math for PHP.

82159.7k1](/packages/mcordingley-linearalgebra)

PHPackages © 2026

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