navarr / wall-clock
PSR-20 implementation that returns the current wall (system) time
Fund package maintenance!
navarr
Installs: 119
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/navarr/wall-clock
Requires
- php: ^8
- psr/clock: ^1
Requires (Dev)
- infection/infection: ^0.26.0
- jetbrains/phpstorm-attributes: ^1.0
- phpstan/phpstan: ^1
- phpunit/phpunit: ^9.5
- roave/security-advisories: dev-master
- squizlabs/php_codesniffer: ^3.6
Provides
This package is auto-updated.
Last update: 2025-10-11 17:43:41 UTC
README
This library contains an implementation of PSR-20 that provides a new DateTimeImmutable instance everytime its called
Installation
composer require navarr/wall-clock:^1
Usage
use Navarr\WallClock\WallClock; $clock = new WallClock(); $clock->now()->format('Y-m-d H:i:s') === date('Y-m-d H:i:s')