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

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

epiphany/date-factory
=====================

Simple, mockable, factory for creating dates

v1.1(5y ago)05.6kMITPHPPHP ^7.1|^8.0CI failing

Since Apr 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/epiphanysearch/date-factory)[ Packagist](https://packagist.org/packages/epiphany/date-factory)[ RSS](/packages/epiphany-date-factory/feed)WikiDiscussions master Synced 3d ago

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

\#Date Factory

A simple, re-usable DateTime factory that can be injected into services and easily mocked.

Usage:

```
$dateTimeFactory = new DateTimeFactory();
$now = $dateTimeFactory->now();
$then = $dateTimeFactory->now("yesterday");	// accepts any input to \DateTime::__construct()

var_dump([$now,$then]);

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity69

Established project with proven stability

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

Total

2

Last Release

1900d ago

PHP version history (2 changes)1.0PHP ^7.1

v1.1PHP ^7.1|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/1fa633cac4aa69a2a7aca730252b8356e67add7aece6192e3d26de7d83140456?d=identicon)[danmartin-epiphany](/maintainers/danmartin-epiphany)

### Embed Badge

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

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

###  Alternatives

[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3403.5M7](/packages/optimistdigital-nova-multiselect-field)[symfony/semaphore

Symfony Semaphore Component

373.9M6](/packages/symfony-semaphore)[crell/fp

Functional utilities for PHP 8 and later

91429.8k11](/packages/crell-fp)[php-stubs/wordpress-globals

Global variables and global constants from WordPress core.

13799.0k17](/packages/php-stubs-wordpress-globals)[instaclick/symfony2-coding-standard

A code standard to check against the Symfony coding standards.

1048.5k13](/packages/instaclick-symfony2-coding-standard)

PHPackages © 2026

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