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

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

fadoe/date
==========

Library to handle PHP DateTime objects

3.0.0(2y ago)04.1kBSD-3-ClausePHPPHP ^8.1

Since Sep 17Pushed 2y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (11)Used By (0)

FaDoe\\Date
===========

[](#fadoedate)

This library provides some classes for date handling in PHP.

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

[](#installation)

Use `composer` to install this library:

```
composer.phar require fadoe/date
```

Usage
-----

[](#usage)

### Compare

[](#compare)

Compare is a class to compare `\DateTime` classes. You must create a instance with the `\DateTime` to compare against other `\DateTime` classes.

There are several compare methods:

constantcompare strategyCompare::GT\_FROM\_LT\_TOdate from &lt; compare date &lt; date toCompare::GT\_FROM\_LTEQ\_TOdate from &lt; compare date &lt;= date toCompare::GTEQ\_FROM\_LT\_TOdate from &lt;= compare date &lt; date toCompare::GTEQ\_FROM\_LTEQ\_TOdate from &lt;= compare date &lt;= date to### DateRange

[](#daterange)

This class creates `\DateTime` classes between two dates.

### DateTimeProvider

[](#datetimeprovider)

A class to give some `\DateTime` classes. Usefull for classes that need the current date for calculation. With this class you have a provider for dates and you can mock this in unit tests.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity78

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

Recently: every ~776 days

Total

10

Last Release

1024d ago

Major Versions

0.8.0 → 2.0.02023-07-25

2.0.0 → 3.0.02023-07-29

PHP version history (3 changes)0.8.0PHP &gt;=7.0.0

2.0.0PHP ^8.0

3.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/ccea1342884d6a635b96abf888a8b12a7b035c2c83865cb553bb3c04340c7698?d=identicon)[fadoe](/maintainers/fadoe)

---

Top Contributors

[![fadoe](https://avatars.githubusercontent.com/u/1300722?v=4)](https://github.com/fadoe "fadoe (29 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-help-space

Integrate Helpspace in your Laravel app

2333.7k](/packages/spatie-laravel-help-space)

PHPackages © 2026

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