Libraries tagged by mock time
kumatch/dateclock
31 Downloads
Creates current date/time, or stop.
mf1dd/object-builder
1 Downloads
Automatically creates fully populated PHP object instances with random, type-safe values. Designed for test fixtures and runtime object generation. Supports all PHP class types — regular classes, readonly classes, abstract classes, enums, traits, interfaces, and built-in stock classes like DateInterval or ArrayObject. Recursively resolves nested object graphs, detects property names for semantically meaningful values (timezone, email, firstname …), and offers constraint-based value ranges via a fluent API. No framework required; zero runtime dependencies beyond nikic/php-parser. PHP 8.2+.
cemerson/clock
1982 Downloads
Ultra-simple clock abstraction for PHP 7+, allowing developers to properly mock time-related functions
narrowspark/testing-helper
62659 Downloads
Provides test helpers.
moc/synchronizeurl
6454 Downloads
Neos CMS package that keep page titles and URLs in sync by updating the URL every time the title changes
tijmenwierenga/guzzle-mock-handler
1359 Downloads
A better Guzzle mock handler
tomener/phpmock
10 Downloads
phpmock is a simulation data generator, mock data generator
fostam/filelock
29645 Downloads
Simple file based locking with lock timeout and exceptions
arzzen/php-time-lock-encryption
477 Downloads
Time Lock Encryption Class
model/lock
1034 Downloads
Wrapper around symfony/lock to support timeouts in blocking locks
mouf/utils.common.lock
67564 Downloads
A simple package that provides functions to get a lock. Typically, you want to use locks when you want to be sure that 2 actions do not happen at the same time. For instance, if you regularly schedule cron tasks, you might want to be sure the last cron task finished before running the new one. A lock can help you do that.
alex/mutexlock
2525 Downloads
MutexLock makes sure that a cron job defined in multiple identical web servers will not execute more than one task at a time. Backed by Redis.
tarun-singhal/page-lock
12 Downloads
For muti user access of the web-page then lock the same web page irrespective of browser using for a pre-defined time intervel.
emmetog/locker
24 Downloads
A library that allows only one process to execute at a time
bytetcore/queue-unique-runner
8 Downloads
Ensure Laravel queue jobs run on only one server instance at a time with database or Redis distributed locking, heartbeat, and crash recovery.