PHPackages                             filipgolonka/prophecy-datetime-approximate-token - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. filipgolonka/prophecy-datetime-approximate-token

ActiveLibrary[Testing &amp; Quality](/categories/testing)

filipgolonka/prophecy-datetime-approximate-token
================================================

DateTime approximate token allows you to write specs without 1second problem

0.3(10y ago)014.6kMITPHP

Since May 25Pushed 10y ago1 watchersCompare

[ Source](https://github.com/filipgolonka/prophecy-datetime-approximate-token)[ Packagist](https://packagist.org/packages/filipgolonka/prophecy-datetime-approximate-token)[ RSS](/packages/filipgolonka-prophecy-datetime-approximate-token/feed)WikiDiscussions master Synced 1mo ago

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

prophecy-datetime-approximate-token
-----------------------------------

[](#prophecy-datetime-approximate-token)

Installation
============

[](#installation)

```
composer require filipgolonka/prophecy-datetime-approximate-token

```

Usage
=====

[](#usage)

Inside some example:

```
       $collaborator->methodAcceptedDatetime(new DatetimeApproximateToken(new \DateTime()))->shouldBeCalled();
```

You can also use this token for collaborator method accepted date string:

```
       $collaborator->methodAcceptedDateString(new DatetimeApproximateToken(new \DateTime()))->shouldBeCalled();

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Total

3

Last Release

3676d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/855c55ef5e845919f980318fc0c38e688acba842a603598e956dada8d7a736a0?d=identicon)[filipgolonka](/maintainers/filipgolonka)

---

Top Contributors

[![filipgolonka](https://avatars.githubusercontent.com/u/2419247?v=4)](https://github.com/filipgolonka "filipgolonka (3 commits)")

---

Tags

specificationBDDTDDprophecyspecSpecBDD

### Embed Badge

![Health badge](/badges/filipgolonka-prophecy-datetime-approximate-token/health.svg)

```
[![Health](https://phpackages.com/badges/filipgolonka-prophecy-datetime-approximate-token/health.svg)](https://phpackages.com/packages/filipgolonka-prophecy-datetime-approximate-token)
```

###  Alternatives

[phpspec/phpspec

Specification-oriented BDD framework for PHP 7.1+

1.9k37.5M3.2k](/packages/phpspec-phpspec)[mockery/mockery

Mockery is a simple yet flexible PHP mock object framework

10.7k526.2M26.7k](/packages/mockery-mockery)[codeception/codeception

All-in-one PHP Testing Framework

4.9k90.2M3.2k](/packages/codeception-codeception)[bossa/phpspec2-expect

Helper that decorates any SUS with a phpspec lazy object wrapper

741.8M90](/packages/bossa-phpspec2-expect)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k42.5M40.2k](/packages/orchestra-testbench)[orchestra/testbench-core

Testing Helper for Laravel Development

27248.1M381](/packages/orchestra-testbench-core)

PHPackages © 2026

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