acts/time-mock-bundle
Symfony bundle for mocking and controlling time in tests and development. Freeze, fast-forward, and reset “now” to make time-dependent code deterministic, simplify assertions, and avoid flaky tests across DateTime/Clock usage.
DateTime overrides). Lowers dev overhead and technical debt.DateTime, Carbon, or Symfony’s ClockInterface for core logic (e.g., payments, subscriptions, or workflows).date_default_timezone_set hacks).Mockery or PHPUnit extensions may suffice).clockwork/clockwork or spatie/temporal-tests.For Executives: "This package lets our dev team write faster, more reliable tests for time-sensitive features—like subscriptions or compliance deadlines—without waiting for real clocks. It’s like hitting ‘pause’ on time in our tests, so we can catch bugs early and ship features like scheduled payments or reminders with confidence. The cost? Minimal: a one-time setup for our Symfony apps, with zero runtime overhead. It’s a force multiplier for our engineering team, especially as we scale features that depend on time."
For Engineering:
*"The acts/time-mock-bundle gives us a clean way to mock time in Symfony2 tests, replacing fragile workarounds like DateTime::setTestNow(). Key benefits:
ClockInterface and Time component, so it plays nice with modern Symfony.How can I help you explore Laravel packages today?