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

ActiveLibrary

phellow/date
============

Helps to work with dates

1.0.1(11y ago)0341MITPHP

Since Dec 8Pushed 11y ago1 watchersCompare

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

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

This small library will help you to work with date/time specific objects.

Install via Composer
--------------------

[](#install-via-composer)

Add the following dependency to your project's *composer.json* file:

```
{
    "require": {
        "phellow/date": "1.*"
    }
}
```

Usage
-----

[](#usage)

Use the DateFactory to create all objects. You can add the factory to your Dependency Injection Container.

```
$factory = new \Phellow\Date\DateFactory();

// create a DateTime object
$dt = $factory->createDateTime();
$dt = $factory->createDateTime('now');
$dt = $factory->createDateTime('2014-12-8');
$dt = $factory->createDateTime(time());
$dt = $factory->createDateTime($dt);

// create a Month object
$month = $factory->createMonth();
$month = $factory->createMonth('now');
$month = $factory->createMonth('2014-12-8');
$month = $factory->createMonth(time());
$month = $factory->createMonth($dt);
```

To see all the possibilities, you can check out the Unit Tests under *tests/*.

License
-------

[](#license)

The MIT license.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~14 days

Total

2

Last Release

4165d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5efd9b3950946d0adf5a5046e1bfce3fd0e93ad581a78fd7478ffdf0957e1944?d=identicon)[christianblos](/maintainers/christianblos)

---

Top Contributors

[![smilesrg](https://avatars.githubusercontent.com/u/576284?v=4)](https://github.com/smilesrg "smilesrg (3 commits)")[![christianblos](https://avatars.githubusercontent.com/u/864455?v=4)](https://github.com/christianblos "christianblos (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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