2017 © Pedro Peláez
 

symfony-bundle timecop-bundle

Easy symfony integration with https://github.com/hnw/php-timecop

image

kolemp/timecop-bundle

Easy symfony integration with https://github.com/hnw/php-timecop

  • Monday, February 5, 2018
  • by pkoltermann
  • Repository
  • 1 Watchers
  • 3 Stars
  • 16,161 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 8 Versions
  • 13 % Grown

The README.md

Have your own tardis

This is a very tiny symfony (2&3) bundle that simplifies usage of php-timecop. To use this extension you need a php server with configured timecop.so extension. In case of troubles with compilation I can provide some extra instructions., (*1)

Warning!

Using this extension same as php-timecop alone can be very dangerous especially on production environment. Use it wisely., (*2)

Installation

composer require kolemp/timecop-bundle

Configuration

After installation add the bundle to app/AppKernel.php. By default the extension is disabled. To enable it add a section to config.yml for environments you want it to be enabled:, (*3)

kolemp_timecop:
  enabled: true

Time sources

You can set the time by query parameter or the cookie. Both are named fakeTime. The value given must be compatibile with relative date formats. Example url: example.com?fakeTime=+3 days, (*4)

Disabling time source

You can disable any of time sources in config. By default all are enabled:, (*5)

kolemp_timecop:
  queryParameter: true
  cookie: true
  header: true

Source order

The time data is used in the following order: the header, the cookie, the query parameter., (*6)

The Versions

05/02 2018

dev-master

9999999-dev https://github.com/pkoltermann/timecop-bundle

Easy symfony integration with https://github.com/hnw/php-timecop

  Sources   Download

MIT

by Przemyslaw Koltermann

timecop timetravel

05/02 2018

0.4.0

0.4.0.0 https://github.com/pkoltermann/timecop-bundle

Easy symfony integration with https://github.com/hnw/php-timecop

  Sources   Download

MIT

by Przemyslaw Koltermann

timecop timetravel

05/12 2016

0.3.3

0.3.3.0 https://github.com/pkoltermann/timecop-bundle

Easy symfony integration with https://github.com/hnw/php-timecop

  Sources   Download

MIT

by Przemyslaw Koltermann

timecop timetravel

27/10 2016

0.3.2

0.3.2.0 https://github.com/pkoltermann/timecop-bundle

Easy symfony integration with https://github.com/hnw/php-timecop

  Sources   Download

MIT

by Przemyslaw Koltermann

timecop timetravel

20/10 2016

0.3.1

0.3.1.0 https://github.com/pkoltermann/timecop-bundle

Easy symfony integration with https://github.com/hnw/php-timecop

  Sources   Download

MIT

by Przemyslaw Koltermann

timecop timetravel

20/10 2016

0.3.0

0.3.0.0 https://github.com/pkoltermann/timecop-bundle

Easy symfony integration with https://github.com/hnw/php-timecop

  Sources   Download

MIT

by Przemyslaw Koltermann

timecop timetravel

20/10 2016

0.2.0

0.2.0.0 https://github.com/pkoltermann/timecop-bundle

Easy symfony integration with https://github.com/hnw/php-timecop

  Sources   Download

MIT

by Przemyslaw Koltermann

timecop timetravel

28/09 2016

0.1.0

0.1.0.0 https://github.com/pkoltermann/timecop-bundle

Easy symfony integration with https://github.com/hnw/php-timecop

  Sources   Download

MIT

by Przemyslaw Koltermann

timecop timetravel