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 to hook up real-time visual output when working from the command line.
Via Composer
$ composer require sqonk/phext-datakit
Please see the API Reference for full documentation on each class and the available methods.
Example code for all classes can be viewed here.
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.
The MIT License (MIT). Please see License File for more information.