PHPackages                             edgetelemetrics/timebucket - 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. edgetelemetrics/timebucket

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

edgetelemetrics/timebucket
==========================

Group events into time slices

v1.0.0(1mo ago)13.4kMITPHPPHP ^8.0

Since Jul 30Pushed 2y ago1 watchersCompare

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

READMEChangelog (8)Dependencies (2)Versions (10)Used By (0)

Time Bucket
===========

[](#time-bucket)

Not all events and measurements occur at the exact moment, however we may wish to correlate between these events by grouping them into arbitary time slices. TimeBucket allows you to aggregate data into slices of time (eg 5 minutes, by day etc) and then retrieve data via a time ordered queue.

TimeBuckets can be used to estimate the interval between slices of data and identify any time slices that are missing data.

Requirements
------------

[](#requirements)

The package is compatible with PHP 8.0+

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

[](#installation)

You can add the library as project dependency using [Composer](https://getcomposer.org/):

```
composer require edgetelemetrics/timebucket
```

Examples
--------

[](#examples)

TBC. See tests/ for now

License
-------

[](#license)

MIT, see [LICENSE file](LICENSE).

### Contributing

[](#contributing)

Bug reports (and small patches) can be submitted via the [issue tracker](https://github.com/lucasnetau/timebucket/issues). Forking the repository and submitting a Pull Request is preferred for substantial patches.

###  Health Score

43

—

FairBetter than 90% of packages

Maintenance60

Regular maintenance activity

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity69

Established project with proven stability

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

Recently: every ~254 days

Total

9

Last Release

41d ago

Major Versions

v0.4.1 → v1.0.02026-03-29

PHP version history (3 changes)0.1.0PHP &gt;=7.2

0.1.1PHP ^7.4|^8.0

v0.3.1PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/83ab22a74b2d8a4cbb5b9774d999c409cc355d1d0d948f5f9ee4d1fe0299de62?d=identicon)[lucasnetau](/maintainers/lucasnetau)

---

Top Contributors

[![lucasnetau](https://avatars.githubusercontent.com/u/9331242?v=4)](https://github.com/lucasnetau "lucasnetau (64 commits)")

---

Tags

event-sourcingevent-streamtime-bucketingtimebucket

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/edgetelemetrics-timebucket/health.svg)

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

###  Alternatives

[symfony/clock

Decouples applications from the system clock

430168.9M205](/packages/symfony-clock)[knplabs/knp-time-bundle

Making your dates and durations look sensible and descriptive

6308.9M39](/packages/knplabs-knp-time-bundle)[league/period

Time range API for PHP

7335.4M21](/packages/league-period)[wapmorgan/morphos

A morphological solution for Russian and English language written completely in PHP. Provides classes to inflect personal names, geographical names, decline and pluralize nouns, generate cardinal and ordinal numerals, spell out money amounts and time.

8351.3M7](/packages/wapmorgan-morphos)[brick/date-time

Date and time library

3623.3M60](/packages/brick-date-time)[aeon-php/calendar

PHP type safe, immutable calendar library

2079.7M16](/packages/aeon-php-calendar)

PHPackages © 2026

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