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.
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?
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
How can I help you explore Laravel packages today?