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
64013 Downloads
Provides test helpers.
moc/synchronizeurl
6516 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
1363 Downloads
A better Guzzle mock handler
tomener/phpmock
10 Downloads
phpmock is a simulation data generator, mock data generator
fostam/filelock
30716 Downloads
Simple file based locking with lock timeout and exceptions
arzzen/php-time-lock-encryption
506 Downloads
Time Lock Encryption Class
model/lock
1089 Downloads
Wrapper around symfony/lock to support timeouts in blocking locks
mouf/utils.common.lock
67581 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.
adamjenkins/moodle-tool_timelocker
0 Downloads
A Moodle admin tool that bulk-schedules gradebook lock-after dates across a course's gradable activities on a timed-session basis
emmetog/locker
24 Downloads
A library that allows only one process to execute at a time