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

Duoclock Laravel Package

sanmai/duoclock

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.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture fit is strong for specialized dual-clock scenarios but may conflict with Laravel's existing Carbon-based time handling. The package's lightweight design aligns with Laravel's modular philosophy, though it introduces a new abstraction layer that must coexist with core time utilities. Integration feasibility is low due to the unknown repository status—no public source code or Packagist entry—making installation via Composer impossible without manual intervention. Technical risks include unverified stability (only 3 stars), potential compatibility issues with modern Laravel/PHP versions, and a suspicious "2025-12-26" release date suggesting metadata errors. Key questions: Where is the actual source repository? What Laravel/PHP versions are supported? How does it handle clock drift in distributed systems? Are there unit tests or CI pipelines? How does it interact with Laravel's now() and Carbon helpers?

Integration Approach

Stack fit is unclear without documentation, but the package likely requires explicit dependency injection via Laravel's service container. It may complement but not replace Carbon, necessitating careful separation of dual-clock logic from standard time operations. Migration path is high-risk for existing codebases—no documented upgrade steps or deprecation strategies. New features could adopt it incrementally, but legacy systems would require extensive refactoring. Compatibility is unconfirmed; the package may not support Laravel 9+ or PHP 8.2+ without validation. Sequencing should prioritize a sandboxed PoC in a non-critical module (e.g., logging or analytics) to validate functionality before broader adoption. Avoid replacing core time-dependent features until rigorous testing confirms reliability

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