PHPackages                             fieg/statistico - 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. fieg/statistico

ActiveLibrary

fieg/statistico
===============

2.1.0(9y ago)065.2k11MITPHPPHP &gt;=5.5

Since Oct 30Pushed 9y ago1 watchersCompare

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

READMEChangelog (6)Dependencies (1)Versions (7)Used By (1)

Statistico
==========

[](#statistico)

Library to track statistics.

[![Build Status](https://camo.githubusercontent.com/9c93f3293468134984e45e55a881b0881179d95800c50ee2cadd966ed9e353e1/68747470733a2f2f7472617669732d63692e6f72672f666965672f7374617469737469636f2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/fieg/statistico)

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

[](#installation)

Using composer:

```
composer require fieg/statistico:dev-master
```

Usage
-----

[](#usage)

Tracking statistics:

```
use Fieg\Statistico\Statistico;

$redis = new \Redis();
$driver = new Fieg\Statistico\Driver\RedisDriver($redis);
$statistico = new Statistico($driver);

// increment
$statistico->increment('your.bucket.name'); // increments with 1

// gauge
$statistico->gauge('your.bucket.name', 500); // sets bucket value to 500

// timing
$statistico->timing('your.bucket.name', 300); // sets bucket value to 300ms
```

Reading statistics:

```
use Fieg\Statistico\Reader;

$redis = new \Redis();
$driver = new Fieg\Statistico\Driver\RedisDriver($redis);
$reader = new Reader($driver);

// query counts from 7 days ago to now
$counts = $reader->queryCounts('your.bucket.name', 'seconds', new \DateTime('-7 days'), new \DateTime());

// $counts would now contain an array of (unix) timestamps and counts
// [[10000000, 4], [10000001, 6], ...]

// query timings from 7 days ago to now
$timings = $reader->queryTimings('your.bucket.name', 'seconds', new \DateTime('-7 days'), new \DateTime());

// query gauges from 7 days ago to now
$gauges = $reader->queryGauges('your.bucket.name', 'seconds', new \DateTime('-7 days'), new \DateTime());
```

Available granularities are: seconds, minutes, hours and days.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 83.9% 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 ~119 days

Recently: every ~87 days

Total

6

Last Release

3623d ago

Major Versions

1.0 → 2.02015-07-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/5eceacbc3912547ac51ba584798cc5a7c1bfae49b714978f62b6e1af389307dd?d=identicon)[fieg](/maintainers/fieg)

![](https://www.gravatar.com/avatar/14099cff9bb1840056d71facc7d248129646a0048ac348ba68648a1aa128f099?d=identicon)[cleentfaar](/maintainers/cleentfaar)

---

Top Contributors

[![fieg](https://avatars.githubusercontent.com/u/1086908?v=4)](https://github.com/fieg "fieg (26 commits)")[![pkruithof](https://avatars.githubusercontent.com/u/330828?v=4)](https://github.com/pkruithof "pkruithof (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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