spatie/period
Complex period comparisons observed · 2026-08-28
Health v2 · maintenance only
66/100
- Activity 96
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2837
- days_rel: n/a
- days_push: 26
- n_releases_24m: 0
Adoption not part of the score
1699 stars · 76 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A PHP library for comparing multiple date periods, computing overlaps, differences, and basic comparisons between any number of ranges. Periods are immutable and can be built from any DateTime implementation, including Carbon.
Use cases
- check if two date ranges overlap
- calculate the intersection of multiple periods
- find gaps between scheduled date ranges
- compare booking periods in PHP
- compute differences between time intervals
- work with Carbon periods and compare them
When to choose
- you need reliable overlap/difference math across many date ranges in PHP
- you want immutable period objects with configurable precision and boundaries
- you use Carbon or custom DateTime implementations and need interoperability
When to avoid
- you only need simple date arithmetic or formatting
- you work outside the PHP ecosystem
- you need recurring-event scheduling rather than fixed-range comparisons
Facets
library · maturity active
date-time developer-tools php periods date-ranges overlap immutable calendar algorithms
4 sources
- readme: https://github.com/spatie/period · fetched 2026-08-28 · b3deaf386068
- homepage: https://spatie.be/open-source · fetched 2026-08-29 · 6ed5abf69535
- site_page: https://spatie.be/docs · fetched 2026-08-29 · 08e024d86d95
- site_page: https://spatie.be/about-us · fetched 2026-08-29 · d3cb88e4b34c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| spatie/period | main | 66 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem