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

Clock Laravel Package

tempest/clock

A lightweight clock abstraction for the Tempest framework, offering a testable interface for reading the current time. Swap in a frozen or mock clock during tests so time-dependent code stays deterministic instead of relying on native PHP date functions.

View on GitHub
Deep Wiki
Context7
Package
Score
Description
Stars
Likes
Forks
Downloads
Issues
Score
Opportunity
License
Last Release
tempest/datetime 0.85 tempest/datetime offers a clean, immutable date and time API for PHP, with parsing, formatting, timezone handling, and convenient helpers for comparing and manipulating dates. A lightweight option for everyday datetime work. 0 0 0 177 0 0.0 31.1 MIT —
View on GitHub
beste/clock 0.85 A collection of PSR-20 clock implementations for PHP, including SystemClock, LocalizedClock, UTCClock, FrozenClock for tests, MinuteClock, and WrappingClock. Freeze time, set time zones, or wrap any object with a now() method. Install via composer require beste/clock. 75 75 1 3M 0 19.5 63.2 MIT 2 months ago
View on GitHub
sanmai/duoclock 0.84 PSR-20 clock abstraction with dual time access (DateTimeImmutable, time(), microtime()) plus mockable sleep/usleep/nanosleep for testing. Includes deterministic TimeSpy and tick helpers to measure elapsed time. Minimal dependency (psr/clock) and easy to mock. 3 3 1 1M 0 5.2 57.1 Apache-2.0 10 months ago
View on GitHub
acts/time-mock-bundle 0.84 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. 0 0 — 0 — 0.0 — — —
View on GitHub
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
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
itsgoingd/clockwork 0.83 Clockwork is a browser-based dev tool for PHP/Laravel that profiles your app in real time. Inspect request data, performance, logs, database/cache/Redis queries, events, views, commands, queue jobs and tests—all from a clean timeline UI. 5,947 5,999 332 1M 32 54.2 43.7 MIT 2 years ago
View on GitHub
psr/clock 0.83 PSR-20 Clock interface for PHP. Defines ClockInterface::now() returning DateTimeImmutable, enabling dependency injection of time sources and easy testing. This package provides only the interface; use or create an implementation. 652 652 7 26M 0 3.8 55.3 MIT 3 years ago
View on GitHub
awd-studio/vo-date-time 0.83 Immutable PHP 8.3+ date-time value object. Create from strings, compare (equal/greater/less/between), and return new instances for changes like nextDay(), copy(), or modified() with DateTimePeriod offsets (days, minutes, weeks). 0 0 0 0 0 0.9 — — 1 year ago
View on GitHub
Context7
spatie/test-time 0.83 Control time in tests with Spatie TestTime—freeze or advance Carbon-based timestamps dynamically for time-sensitive assertions. Simplify testing date-dependent logic by manually adjusting time without altering real-world clocks. Works seamlessly with Carbon’s methods like addYear(), subDay(), or cus... 208 208 9 245K 0 5.2 42.4 MIT 2 years ago
View on GitHub
comsolit/clock-bundle 0.82 — 0 0 1 0 4 1.0 0.8 — —
View on GitHub
Context7
brick/date-time 0.82 A powerful set of immutable PHP date-time classes built on native PHP and following ISO 8601, inspired by Java's JSR 310. Adds missing concepts such as LocalDate, LocalTime, YearMonth, and MonthDay. Requires PHP 8.2+. 361 365 36 242K 19 37.8 56.0 MIT 4 weeks ago
View on GitHub
Context7
florianv/business 0.82 Laravel package to validate, normalize, and format business identifiers and tax numbers (VAT, SIRET/SIREN, etc.) across multiple countries. Provides rules/helpers for forms and models, making compliant input handling and display easy. 358 361 25 8K 61 20.7 38.2 MIT 4 years ago
View on GitHub
league/period 0.82 League\Period is PHP's missing time range API, offering immutable Interval and Bounds value objects, named constructors, and full support for simple or complex time range logic. Framework-agnostic, documented, and requiring PHP 8.1+. 731 753 46 131K 0 32.4 36.1 MIT 1 month ago
View on GitHub
herrera-io/date-interval 0.82 Extends PHP’s DateInterval with handy conversions: turn intervals into ISO interval specs and seconds, and recreate intervals from seconds. Useful for normalizing and serializing durations (e.g., P2H <-> 7200). 15 15 7 189 0 0.2 10.8 MIT —
View on GitHub
desarrolla2/timer 0.82 Lightweight PHP timer utility for measuring execution time. Start/stop laps, track multiple timers, and get elapsed time for profiling and benchmarking small code sections. Suitable for quick performance checks during development. 4 5 1 201 0 0.1 22.3 MIT —
View on GitHub
bitandblack/duration 0.82 bitandblack/duration provides a small PHP/Laravel utility for working with time spans: create, parse, and format durations in a readable way, convert between units, and simplify common duration calculations for apps, jobs, and reports. 0 0 — 697 — 0.0 39.3 — —
View on GitHub
alexeyshockov/clock 0.82 — 2 2 2 0 6 0.8 1.1 — —
View on GitHub
react/promise-timer 0.82 Add timeouts and sleep delays to ReactPHP promises. Wrap any pending operation to auto-cancel and reject with a TimeoutException if it doesn’t settle in time, or pass through resolve/reject when it does. Lightweight, function-based API. 341 344 17 3M 1 6.8 54.7 MIT 2 years ago
View on GitHub
php-standard-library/date-time 0.81 Immutable, timezone-aware date and time types for PHP, with Duration, Period, and Interval support for precise, reliable temporal calculations. 1 1 0 83K 0 21.4 64.8 MIT 1 week ago
View on GitHub
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.
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle
adachsoft/api-version-bundle
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
cgv/localized-resource