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.1.0(3mo ago)13.5kMITPHPPHP ^8.0CI failing

Since Jul 30Pushed 2mo ago1 watchersCompare

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

READMEChangelog (10)Dependencies (3)Versions (11)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

49

—

FairBetter than 94% of packages

Maintenance83

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity70

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

Recently: every ~255 days

Total

10

Last Release

92d 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://avatars.githubusercontent.com/u/9331242?v=4)[James Lucas](/maintainers/lucasnetau)[@lucasnetau](https://github.com/lucasnetau)

---

Top Contributors

[![lucasnetau](https://avatars.githubusercontent.com/u/9331242?v=4)](https://github.com/lucasnetau "lucasnetau (69 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

436205.7M391](/packages/symfony-clock)[knplabs/knp-time-bundle

Making your dates and durations look sensible and descriptive

6339.5M56](/packages/knplabs-knp-time-bundle)[league/period

Time range API for PHP

7335.8M24](/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.4M7](/packages/wapmorgan-morphos)[brick/date-time

Date and time library

3663.8M108](/packages/brick-date-time)[aeon-php/calendar

PHP type safe, immutable calendar library

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

PHPackages © 2026

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