PHPackages                             maarheeze/calendar-date - 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. maarheeze/calendar-date

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

maarheeze/calendar-date
=======================

a timezone-agnostic calendar date value object

1.1.0(3mo ago)031MITPHP ^8.2

Since Mar 6Compare

[ Source](https://github.com/maarheeze/calendar-date)[ Packagist](https://packagist.org/packages/maarheeze/calendar-date)[ RSS](/packages/maarheeze-calendar-date/feed)WikiDiscussions Synced 4w ago

READMEChangelog (2)Dependencies (6)Versions (3)Used By (1)

maarheeze/calendar-date
=======================

[](#maarheezecalendar-date)

A timezone-agnostic calendar date value object for PHP. No time component, no timezone concerns.

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

[](#requirements)

- PHP 8.2+

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

[](#installation)

```
composer require maarheeze/calendar-date
```

Usage
-----

[](#usage)

### Creating a date

[](#creating-a-date)

```
CalendarDate::today();
CalendarDate::parse('2000-01-01');
CalendarDate::parse('today');
CalendarDate::parse('+3 weeks');
CalendarDate::instance($dateTimeInterface);
CalendarDate::createFromFormat('d-m-Y', '01-01-2000');
```

### Formatting

[](#formatting)

```
$date->format('Y-m-d');
$date->__toString(); // defaults to Y-m-d
```

### Arithmetic

[](#arithmetic)

```
$date->addDays(7);
$date->subDays(7);
$date->addMonths(1);
$date->subMonths(1);
$date->addYears(1);
$date->subYears(1);
```

All arithmetic methods return a new `CalendarDate` instance.

### Comparison

[](#comparison)

```
$date->equalTo($other);
$date->isBefore($other);
$date->isAfter($other);
$date->isToday();
$date->isPast();
$date->isFuture();
```

License
-------

[](#license)

MIT

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance80

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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

Total

2

Last Release

105d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/734972e64c460b2142b0b04b4f40aa30077c5dd1915411b486ec72efcae3c3bf?d=identicon)[wietsewarendorff](/maintainers/wietsewarendorff)

---

Top Contributors

[![wietsewarendorff](https://avatars.githubusercontent.com/u/313525?v=4)](https://github.com/wietsewarendorff "wietsewarendorff (8 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/maarheeze-calendar-date/health.svg)

```
[![Health](https://phpackages.com/badges/maarheeze-calendar-date/health.svg)](https://phpackages.com/packages/maarheeze-calendar-date)
```

PHPackages © 2026

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