PHPackages                             brainbits/period - 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. brainbits/period

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

brainbits/period
================

Period handling

3.0.5(10mo ago)017.1k↑75%[1 issues](https://github.com/brainbits/period/issues)MITPHPPHP ^8.3CI passing

Since Dec 19Pushed 10mo ago4 watchersCompare

[ Source](https://github.com/brainbits/period)[ Packagist](https://packagist.org/packages/brainbits/period)[ Docs](http://brainbits.net)[ RSS](/packages/brainbits-period/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (9)Versions (17)Used By (0)

Period Component
================

[](#period-component)

[![Latest Version](https://camo.githubusercontent.com/31bba0bedd7b022046bad53280f37e053bc7e54ebc24285ee054adc4d6b668e6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f627261696e626974732f706572696f642e7376673f7374796c653d666c61742d737175617265)](https://github.com/brainbits/period/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/68320cffc157fd12a7e738916cc85edb4b44003b314a9efa9a85da0eab1f52e0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636865636b2d72756e732f627261696e626974732f706572696f642f6d6173746572)](https://github.com/brainbits/period/actions)[![Coverage Status](https://camo.githubusercontent.com/47eb9795201d351fefa0fa04a3c166a665415f75978d4d9656f7912b38bb4bf3/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f627261696e626974732f706572696f64)](https://app.codecov.io/gh/brainbits/period)[![Total Downloads](https://camo.githubusercontent.com/1d28dbe249227a809ce363c0d5e0b28c4261f3cdae0e8308b40a242d6aae7960/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f627261696e626974732f706572696f642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/brainbits/period)

The Period Component provides methods to manage time periods.

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance54

Moderate activity, may be stable

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity86

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 85.7% 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 ~212 days

Recently: every ~181 days

Total

14

Last Release

308d ago

Major Versions

1.1.2 → 2.0.02021-06-01

2.0.3 → 3.0.02023-05-31

PHP version history (7 changes)1.0.0PHP ^7.1

1.1.0PHP ^7.4

1.1.2PHP ^7.4|^8.0

2.0.0PHP ^8.0

2.0.2PHP ^8.1

3.0.0PHP ^8.2

3.0.3PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a25dcc661a3094c990b37332c58b8b7a085666f4b830dff8762d86c0e786c2b?d=identicon)[brainbits](/maintainers/brainbits)

---

Top Contributors

[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (6 commits)")[![temp](https://avatars.githubusercontent.com/u/216128?v=4)](https://github.com/temp "temp (1 commits)")

---

Tags

dateperiod

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/brainbits-period/health.svg)

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

###  Alternatives

[league/period

Time range API for PHP

7335.4M21](/packages/league-period)[brick/date-time

Date and time library

3623.3M61](/packages/brick-date-time)[fresh/datetime

PHP library that provides additional functions for processing dates &amp; times.

17513.8k2](/packages/fresh-datetime)

PHPackages © 2026

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