innmind / time-warp
This package is abandoned and no longer maintained.
The author suggests using the innmind/time package instead.
Time warp
5.1.0
2026-01-18 09:10 UTC
Requires
- php: ~8.4
- innmind/time: ~1.0
Requires (Dev)
- innmind/black-box: ~6.1
- innmind/coding-standard: ~2.0
- innmind/static-analysis: ~1.3
- innmind/time-continuum: ~5.1
README
Important
This project has been replaced by innmind/time
Small library to abstract the way to halt the program.
Installation
composer require innmind/time-warp
Usage
use Innmind\TimeWarp\Halt; use Innmind\TimeContinuum\Period; function yourApp(Halt $halt): void { // do something $halt(Period::minute(42))->unwrap(); // do some more } yourApp(Halt::new());
This example will halt your program for 42 minutes.
Logging
use Innmind\TimeWarp\Halt; use Psr\Log\LoggerInterface; $halt = Halt::logger($halt, /** an instance of LoggerInterface */);