Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Time Mock Bundle Laravel Package

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.

View on GitHub
Deep Wiki
Context7
Package
Score
Description
Stars
Likes
Forks
Downloads
Issues
Score
Opportunity
License
Last Release
symfony/clock 0.84 Decouples your PHP applications from the system clock by injecting a ClockInterface, so you can get the current time, force a timezone, or pause execution with sleep, and swap in a mock clock for testing. 436 436 3 21M 0 31.6 64.6 MIT 3 weeks ago
View on GitHub
assoconnect/php-date-bundle 0.84 — 3 3 0 555 0 29.3 34.8 MIT 1 week ago
View on GitHub
kdyby/datetime-provider-bundle 0.83 A Symfony bundle that integrates kdyby/datetime-provider, giving you DI-managed date/time services so you can inject and control the current time instead of calling new DateTime directly. This makes time-dependent code testable and lets you freeze or mock "now" in your Symfony applications... 6 6 1 0 0 0.4 — NOASSERTION 6 years ago
View on GitHub
spatie/pest-plugin-test-time 0.83 A Pest plugin for controlling time in tests. Freeze or advance Carbon’s current time with testTime()->freeze() and addMinute(), and use the toBeCarbon expectation to assert Carbon date and time values clearly. 51 51 7 63K 0 18.0 48.0 MIT 3 months ago
View on GitHub
lcobucci/clock 0.83 lcobucci/clock is a lightweight clock abstraction for PHP that decouples code from DateTimeImmutable. Use SystemClock for real time or FrozenClock for tests, making time-dependent logic easy to control and verify. 799 801 33 7M 1 30.4 64.2 MIT 5 days ago
View on GitHub
icanhazstring/symfony-time-machine 0.83 Symfony Time Machine makes time-dependent Symfony code testable by letting you freeze, advance, or reset the application clock. Use it to create deterministic tests and simulate past or future dates without changing your system time. 7 7 0 0 1 0.9 2.7 MIT 4 years ago
View on GitHub
bneumann/mock-api-bundle 0.83 — 2 2 0 0 0 0.0 — MIT —
View on GitHub
Context7
chaplean/unit-bundle 0.83 — 0 0 0 0 0 0.0 — — —
View on GitHub
innmind/time-continuum 0.83 InnMind Time Continuum is a PHP library for modeling time as a continuum of instants and intervals. It offers immutable temporal objects, precise duration arithmetic, comparisons, and conversions for scheduling and time-based domain logic. 28 28 1 2K 0 2.2 18.4 MIT 9 months ago
View on GitHub
polishsymfonycommunity/symfony2-mocker-extension 0.83 Behat extension for Symfony2 that lets you mock services in the dependency injection container during tests. Built on Mockery and SymfonyMockerContainer. Consider it a hack and use sparingly; alternative: TestDoubleBundle. 26 26 7 176 0 0.6 12.1 MIT 10 years ago
View on GitHub
happyr/service-mocking 0.83 HappyR Service Mocking is a Laravel testing helper that makes it easy to replace real services with mocks in the container. Swap bindings during functional and integration tests to isolate dependencies and control behavior without manual container wiring or boilerplate. 44 45 7 6K 0 0.5 29.3 MIT 2 years ago
View on GitHub
omaralalwi/laravel-time-craft 0.82 Laravel Time Craft adds Eloquent date scopes (today, yesterday, this week, last N days) plus readable date accessors and formatting helpers to any model, with customizable date fields and timezone-aware querying. 13 12 3 483 0 15.5 24.0 MIT 3 months ago
View on GitHub
polishsymfonycommunity/symfony-mocker-container 0.82 — 141 143 10 48K 1 2.9 34.9 — 4 years ago
View on GitHub
psr-mock/http-client-implementation 0.82 Tiny PSR-18 HTTP client implementation intended for mocking and testing. Provides a simple client you can plug into PSR-7/PSR-17 workflows to return predefined responses without real network calls. 1 1 0 3K 0 0.6 44.8 MIT 2 years ago
View on GitHub
eventsauce/clock 0.82 Simple clock abstraction for PHP. Use SystemClock in production and TestClock in tests to control time deterministically. Get now() as DateTimeImmutable, access timeZone(), move time forward, tick to system time, or fixate to a specific moment. 3 3 2 55K 0 0.1 55.3 — —
View on GitHub
rikudou/clock 0.82 A lightweight clock abstraction for PHP that makes time-dependent code easier to test. Inject a clock instead of calling time() directly, use the system clock in production, and swap in a fixed or mocked clock in tests to control dates and durations reliably. Framework-agnostic and simple to integra... 1 0 0 2K 0 0.0 42.3 MIT —
View on GitHub
comsolit/clock-bundle 0.82 — 0 0 1 0 4 1.0 0.8 — —
View on GitHub
Context7
php-mock/php-mock 0.81 Mock built-in PHP functions like time() or rand() in tests by leveraging PHP’s namespace fallback: define namespaced replacements for unqualified calls. Works in non-global namespaces; supports common test frameworks via integrations (e.g., PHPUnit). 370 375 19 726K 3 13.0 47.8 WTFPL 9 months ago
View on GitHub
belsym/test-bundle 0.81 — 1 1 0 0 0 0.0 — MIT —
View on GitHub
Context7
mockery/mockery 0.81 Mockery is a flexible PHP mock object framework for unit testing with PHPUnit, PHPSpec, or any other testing framework. It offers a succinct, human-readable DSL for defining test doubles and integrates easily as a drop-in alternative to PHPUnit's mocking library. 10,724 10,808 470 19M 89 84.3 77.1 BSD-3-Clause 2 months ago
View on GitHub
Context7
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator