PHPackages                             navarr/specific-time - 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. navarr/specific-time

ActiveLibrary

navarr/specific-time
====================

A static time and date implementation of PSR-20

v1.0.1(7mo ago)11281MITPHPPHP ^8.2CI passing

Since Nov 26Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/navarr/specific-time)[ Packagist](https://packagist.org/packages/navarr/specific-time)[ GitHub Sponsors](https://github.com/navarr)[ RSS](/packages/navarr-specific-time/feed)WikiDiscussions main Synced 6d ago

READMEChangelog (2)Dependencies (7)Versions (4)Used By (1)

Specific Time (PSR-20)
======================

[](#specific-time-psr-20)

[![Latest Stable Version](https://camo.githubusercontent.com/248f6c030f30aaa9988b066c242f190790090a2cbec7da49559d887773def985/687474703a2f2f706f7365722e707567782e6f72672f6e61766172722f73706563696669632d74696d652f76)](https://packagist.org/packages/navarr/specific-time)[![Total Downloads](https://camo.githubusercontent.com/491d2c0b72fe6cd642508a02c9b90b85ce91598e194c80e07e5e03d3703cae53/687474703a2f2f706f7365722e707567782e6f72672f6e61766172722f73706563696669632d74696d652f646f776e6c6f616473)](https://packagist.org/packages/navarr/specific-time)[![Latest Unstable Version](https://camo.githubusercontent.com/149a89426cacaaae1d2dcb4bf9364c6134a166f60cb1e2224ebfd7243152cc16/687474703a2f2f706f7365722e707567782e6f72672f6e61766172722f73706563696669632d74696d652f762f756e737461626c65)](https://packagist.org/packages/navarr/specific-time)[![License](https://camo.githubusercontent.com/b228e7bd8938c9b563a47ce2db0f7819719e71c43e89ca258db9238c2b20b6f0/687474703a2f2f706f7365722e707567782e6f72672f6e61766172722f73706563696669632d74696d652f6c6963656e7365)](https://packagist.org/packages/navarr/specific-time)
[![Tests](https://github.com/navarr/specific-time/actions/workflows/commit.yml/badge.svg)](https://github.com/navarr/specific-time/actions/workflows/commit.yml/badge.svg)[![Code Coverage](https://camo.githubusercontent.com/c3901b484eb7e45f482f38b5b2c42bf65d6af3dcfcad17ffd51986fd2b271fb9/68747470733a2f2f636f6465636f762e696f2f67682f6e61766172722f73706563696669632d74696d652f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d4248544b4f5a5a445233)](https://camo.githubusercontent.com/c3901b484eb7e45f482f38b5b2c42bf65d6af3dcfcad17ffd51986fd2b271fb9/68747470733a2f2f636f6465636f762e696f2f67682f6e61766172722f73706563696669632d74696d652f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d4248544b4f5a5a445233)[![Mutation score](https://camo.githubusercontent.com/09d7b5cedab9cae9a6b1f1eed113ee5f9819d65235865b25fd07389b94e3b131/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d2532466e617661727225324673706563696669632d74696d652532466d61696e)](https://dashboard.stryker-mutator.io/reports/github.com/navarr/specific-time/main)

This is an implementation of PSR-20 that provides a constant time, no matter how many times `->now()` is called on the object.

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

[](#installation)

```
composer require navarr/specific-time:^1

```

Usage
-----

[](#usage)

```
use DateTimeImmutable;
use Navarr\SpecificTime\SpecificTime;

// ...

$date = new DateTimeImmutable('2021-02-20');
$clock = new SpecificTime($date);

// 2021-02-20
echo $clock->now()->format('Y-m-d');
```

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance63

Regular maintenance activity

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

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

Total

2

Last Release

224d ago

PHP version history (2 changes)v1.0.0PHP ^8

v1.0.1PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/24959115e049fb1d71612462e9106b345b3e0e6126439493514018cd440e8937?d=identicon)[navarr](/maintainers/navarr)

---

Top Contributors

[![navarr](https://avatars.githubusercontent.com/u/145128?v=4)](https://github.com/navarr "navarr (10 commits)")

---

Tags

hacktoberfest

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/navarr-specific-time/health.svg)

```
[![Health](https://phpackages.com/badges/navarr-specific-time/health.svg)](https://phpackages.com/packages/navarr-specific-time)
```

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.3k86.3M2.2k](/packages/symfony-symfony)[kreait/firebase-php

Firebase Admin SDK

2.4k39.7M72](/packages/kreait-firebase-php)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

169661.4M4.8k](/packages/nesbot-carbon)[simplesamlphp/saml2

SAML2 PHP library from SimpleSAMLphp

30317.2M40](/packages/simplesamlphp-saml2)[eventsauce/eventsauce

A pragmatic event sourcing library for PHP with a focus on developer experience.

8632.1M47](/packages/eventsauce-eventsauce)

PHPackages © 2026

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