PHPackages                             appkr/timemachine - 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. appkr/timemachine

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

appkr/timemachine
=================

Laravel/Lumen application-level time setter for testing

v0.3.0(8y ago)1241MITPHPPHP &gt;=7.0.0

Since Jun 2Pushed 8y ago1 watchersCompare

[ Source](https://github.com/appkr/timemachine)[ Packagist](https://packagist.org/packages/appkr/timemachine)[ RSS](/packages/appkr-timemachine/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/2538bfc4ce4126818b540b7b307eac7316bcf3b433a695ff8aa3e5d09a9818d9/68747470733a2f2f706f7365722e707567782e6f72672f6170706b722f74696d656d616368696e652f762f737461626c65)](https://packagist.org/packages/appkr/timemachine)[![Total Downloads](https://camo.githubusercontent.com/92e0a28e9706ba2de4a9effb6046754a710fd0bd06282fe917165ec16f801713/68747470733a2f2f706f7365722e707567782e6f72672f6170706b722f74696d656d616368696e652f646f776e6c6f616473)](https://packagist.org/packages/appkr/timemachine)[![Latest Unstable Version](https://camo.githubusercontent.com/7119b3daf688902e82dfadd70ef25c5658c071e177010a832db8fbe995f3d42a/68747470733a2f2f706f7365722e707567782e6f72672f6170706b722f74696d656d616368696e652f762f756e737461626c65)](https://packagist.org/packages/appkr/timemachine)[![License](https://camo.githubusercontent.com/c7962ac73211587e4a812fe66f13071392e7e0d3faee73e10d8f22451ccf0414/68747470733a2f2f706f7365722e707567782e6f72672f6170706b722f74696d656d616368696e652f6c6963656e7365)](https://packagist.org/packages/appkr/timemachine)

Timemachine
===========

[](#timemachine)

Manipulates application(Laravel/Lumen) server's time arbitrarily for a given minutes.

> **`CAVEAT`**
>
> USE THIS ONLY FOR TEST PURPOSE. DO NOT MAKE THIS AVAILABLE IN PUBLICLY ACCESSIBLE SERVICES.
>
> - Provided apis are not protected by authz.
> - While setting is alive, it affects all time related functions of the application. e.g. `created_at` written in the DB tables.

1. Install
----------

[](#1-install)

Pull the library to your project.

```
composer install appkr/timemachine
```

Append service provider in the providers array.

```
