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

rikudou/clock

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...

View on GitHub
Deep Wiki
Context7
Package
Score
Description
Stars
Likes
Forks
Downloads
Issues
Score
Opportunity
License
Last Release
symfony/clock 0.85 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
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
php-standard-library/date-time 0.84 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
herrera-io/date-interval 0.84 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
tempest/clock 0.84 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
digital-craftsman/datetime-parts 0.84 Thin value objects for Time, Date, Month, Year and Moment, wrapping DateTime so you never pad dates with fake times. Internal UTC with timezone-aware edits, plus Symfony normalizers and Doctrine types for storing them directly in the database. 0 0 0 0 0 27.9 — MIT 6 days ago
View on GitHub
fresh/datetime 0.84 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
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
tempest/datetime 0.83 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
apie/date-value-objects 0.83 Date-related value objects for PHP/Apie that model only the date/time parts you need (LocalDate, Time, HourAndMinutes, UnixTimestamp, DateWithTimezone). Helps validate expected formats without relying on full DateTimeImmutable. 0 0 0 12 0 0.0 15.4 MIT —
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
mablae/time-window-bundle 0.83 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
sanmai/duoclock 0.83 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
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
brick/date-time 0.83 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
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
psr/clock 0.82 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
acts/time-mock-bundle 0.82 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
icanhazstring/symfony-time-machine 0.82 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
spatie/test-time 0.82 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 246K 0 5.2 42.4 MIT 2 years 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.
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings
coleus/apps
seampact/laravel
emmyconceptng/laravel-ng-postcode
jjsquady/round-robin