PHPackages                             dazzle/behat-date-manipulation - 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. dazzle/behat-date-manipulation

ActiveBehat-extension

dazzle/behat-date-manipulation
==============================

Allows you to execute commands in custom steps with a different system date.

01.3k↓100%1PHP

Since Mar 7Pushed 2y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Behat Date Manipulation
=======================

[](#behat-date-manipulation)

This package allows you to execute a command that is time sensitive.

When do I need this?
--------------------

[](#when-do-i-need-this)

If you have time sensitive steps to execute, for example a cronjob picks up items that are older than X days.

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

[](#installation)

Installation through composer:

```
composer require dazzle/behat-date-manipulation:dev-master

```

This package depends on [libfaketime](https://github.com/wolfcw/libfaketime.git).

Installation in most cases is as simple as:

```
git clone https://github.com/wolfcw/libfaketime.git
cd libfaketime && make install

```

Usage
-----

[](#usage)

In your Behat config YAML file add following part in the 'Contexts':

```
- Dazzle\BehatDateManipulation\FeatureContext:
            parameters:
              install_path: "/usr/local/lib/faketime/libfaketime.so.1"

```

The default libfaketime path should normally be OK.

Example steps:
--------------

[](#example-steps)

```
Given I manipulate the date with "+30d" and execute command "php my_cron.php"

Given I manipulate the date with "-15d" and execute command "date"
And I save it into "DATE"
And I expect "" to equal "xxxx"

```

The second example uses [rdx/behat-variables](https://github.com/rudiedirkx/behat-variables)which is not included in this package but might be useful if you want to work with the output that this package provides.

Credits
-------

[](#credits)

- Originally developed by [Kevin Thiels](https://github.com/Novitsh)

[www.dazzle.be](https://www.dazzle.be/?ref=github-behat-date-manipulation)[www.aperta.be](https://www.aperta.be/?ref=github-behat-date-manipulation)

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor1

Top contributor holds 90% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/296ee2fbf0a8ae03aec878637451317bb17b975c6bd3f302685f2bcfad0e739d?d=identicon)[Novitsh](/maintainers/Novitsh)

---

Top Contributors

[![Novitsh](https://avatars.githubusercontent.com/u/5877591?v=4)](https://github.com/Novitsh "Novitsh (9 commits)")[![vensires](https://avatars.githubusercontent.com/u/7026752?v=4)](https://github.com/vensires "vensires (1 commits)")

### Embed Badge

![Health badge](/badges/dazzle-behat-date-manipulation/health.svg)

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

PHPackages © 2026

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