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

symfony/clock

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.

View on GitHub
Deep Wiki
Context7
Package
Score
Description
Stars
Likes
Forks
Downloads
Issues
Score
Opportunity
License
Last Release
innmind/time-continuum 0.89 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
psr/clock 0.87 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
kdyby/datetime-provider-bundle 0.87 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
fresh/datetime 0.86 Fresh DateTime adds convenient, expressive date and time handling to Laravel and PHP applications. It simplifies parsing, formatting, comparing, and manipulating dates, with timezone-aware helpers and a clean, chainable API for everyday scheduling and timestamp tasks. 18 19 3 35K 0 5.3 46.9 MIT 9 months ago
View on GitHub
tempest/clock 0.86 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. 0 0 0 113 0 0.0 28.4 MIT —
View on GitHub
beste/clock 0.86 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.1 63.0 MIT 2 months ago
View on GitHub
sifex/sla-timer 0.86 Sifex SLA Timer helps Laravel apps manage service-level agreements with timers that track elapsed and remaining time, pause and resume as needed, and check for breaches. Attach timers to Eloquent models and query active, paused, or expired SLAs through a simple API. 36 — 0 — 2 16.5 — MIT 2 months ago
View on GitHub
icanhazstring/symfony-time-machine 0.86 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
pjkober/datetimeintervalbundle 0.86 Symfony bundle providing utilities for working with DateTime intervals: creating, manipulating, and comparing date/time ranges in PHP applications. A small, minimally maintained package suited to straightforward interval handling needs. 0 — 1 — 0 0.4 — MIT 9 years ago
View on GitHub
assoconnect/php-date-bundle 0.86 — 3 3 0 555 0 29.3 34.8 MIT 1 week ago
View on GitHub
lunetics/timezone-bundle 0.86 Symfony bundle that detects a visitor's timezone from their IP address and exposes it through a simple service, with configurable fallbacks for timezone-aware applications. 26 26 11 2 1 16.7 0.5 MIT 2 months ago
View on GitHub
symfony/stopwatch 0.86 Symfony Stopwatch profiles PHP code: start and stop named events, group them into sections, and record lap times to measure where execution time goes. Install via Composer. 2,813 2,828 15 13M 0 36.2 55.7 MIT 5 months ago
View on GitHub
phpugl/dime-timetracker-bundle 0.86 Symfony bundle that integrates Dime time tracking into PHP applications, providing configuration and services for recording work hours, managing projects and tasks, and adding timetracking features to Symfony projects. 12 12 1 0 0 0.1 — — —
View on GitHub
sanmai/duoclock 0.86 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.86 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
comsolit/clock-bundle 0.86 — 0 0 1 0 4 1.0 0.8 — —
View on GitHub
Context7
mablae/time-window-bundle 0.86 A Symfony bundle for defining reusable time windows and checking whether the current time falls inside them, with support for recurring daily or weekly ranges, timezone-aware comparisons, and simple configuration for scheduling and availability rules. 0 1 0 0 0 0.0 — MIT —
View on GitHub
php-standard-library/date-time 0.86 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
lcobucci/clock 0.85 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
rikudou/clock 0.85 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
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.
ippanelcom/laravel-sdk
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus