orisai / nette-clock
Orisai Clock and Symfony Clock integration for Nette
Installs: 2 487
Dependents: 2
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: 7.4 - 8.3
- nette/di: ^3.0.3
- orisai/clock: ^1.2.0
- orisai/utils: ^1.0.0
Requires (Dev)
- brianium/paratest: ^6.3.0
- infection/infection: ^0.26.0|^0.27.0|^0.28.0|^0.29.0
- orisai/coding-standard: ^3.0.0
- orisai/nette-di: ^1.0.3
- phpstan/extension-installer: ^1.0.0
- phpstan/phpstan: ^1.0.0
- phpstan/phpstan-deprecation-rules: ^1.0.0
- phpstan/phpstan-nette: ^1.0.0
- phpstan/phpstan-phpunit: ^1.0.0
- phpstan/phpstan-strict-rules: ^1.0.0
- phpunit/phpunit: ^9.5.0
- staabm/annotate-pull-request-from-checkstyle: ^1.7.0
README
Nette Clock
Orisai Clock and Symfony Clock integration for Nette
PSR-20 compatible
📄 Check out our documentation.
💸 If you like Orisai, please make a donation. Thank you!
use Orisai\Clock\Clock; use function Orisai\Clock\now; class ExampleService { private Clock $clock; public function __construct(Clock $clock) { $this->clock = $clock; } public function doSomething(): void { $currentTime = $this->clock->now(); // Or $currentTime = now(); } }