Weave Code
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

beste/clock

beste/clock is a lightweight PHP clock implementation for time-dependent code. It provides a simple, test-friendly way to obtain the current time, swap in fixed or mock clocks, and improve determinism across your application and automated tests.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture fit: The package provides a standardized Clock interface and implementations (e.g., SystemClock, MockClock), aligning with Laravel's dependency injection principles. It enables testable time-dependent code by decoupling time logic from business logic. However, Laravel's existing Carbon library dominates time handling, so this package must complement rather than replace it (e.g., via interface-based injection for testability).

Integration feasibility: Likely straightforward via Laravel's service container if the package includes a service provider. Minimal configuration (e.g., binding the Clock interface to a concrete implementation in AppServiceProvider). However, the unknown repository and lack of recent updates (last release Nov 2022) suggest potential gaps in Laravel-specific integration (e.g., compatibility with Laravel's scheduler or queue jobs).

Technical risk: High due to low adoption (73 stars), inactive maintenance, and unconfirmed compatibility with modern Laravel versions (e.g., Laravel 10+). May lack critical features like timezone-aware operations or integration with Laravel's time-related tools (e.g., CarbonImmutable).

Key questions:

  • Does the package support Laravel's scheduler, queue jobs, and database timestamp columns?
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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport