PHPackages                             axiocode/mynow - 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. axiocode/mynow

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

axiocode/mynow
==============

Load your own time in order to simulate the current date and time.

0.1.0(6y ago)03[1 issues](https://github.com/AxioCode/mynow/issues)BSD-3-ClausePHPPHP ^5.4 || ^7.0

Since Jun 26Pushed 6y ago1 watchersCompare

[ Source](https://github.com/AxioCode/mynow)[ Packagist](https://packagist.org/packages/axiocode/mynow)[ RSS](/packages/axiocode-mynow/feed)WikiDiscussions master Synced 2d ago

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

MyNow
=====

[](#mynow)

Load your own time in order to simulate the current date and time.

Why MyNow?
----------

[](#why-mynow)

Installation with Composer
--------------------------

[](#installation-with-composer)

```
composer require axiocode/mynow
```

Usage
-----

[](#usage)

Create the `.time` file in your directory with the timestamp of desired date and time.

```
245671200

```

You can then load `.time` in your application with:

```
$mynow = MyNow\MyNow::create(__DIR__);
```

Replace all calls to the default DateTime() constructor by MyNow DateTime.

```
$now = MyNow\DateTime();
```

If MyNow is not used or no file exists, the default DateTime instance will be used without to break your code.

Loaders
-------

[](#loaders)

Currently only text loader is supported.

Different loaders may be provided to load date/time from different sources such as a database, YAML, etc.

License
-------

[](#license)

MyNow is licensed under [The BSD 3-Clause License](LICENSE).

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

Unknown

Total

1

Last Release

2513d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/42cd49086cc0ecad7d251fed7f5d4c2c738fea9ddf53161dff3982999e5341d0?d=identicon)[azanetti](/maintainers/azanetti)

---

Top Contributors

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

---

Tags

datetimenow

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/axiocode-mynow/health.svg)

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

###  Alternatives

[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k394.3M1.5k](/packages/nette-utils)[league/period

Time range API for PHP

7335.4M21](/packages/league-period)[morilog/jalali

This Package helps developers to easily work with Jalali (Shamsi or Iranian) dates in PHP applications, based on Jalali (Shamsi) DateTime class.

9201.2M45](/packages/morilog-jalali)[brick/date-time

Date and time library

3623.3M61](/packages/brick-date-time)[aeon-php/calendar

PHP type safe, immutable calendar library

2079.7M16](/packages/aeon-php-calendar)[tplaner/when

Date/Calendar recursion library.

5261.0M5](/packages/tplaner-when)

PHPackages © 2026

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