Componette

Componette

orisai

orisai / nette-clock

Orisai Clock integration for Nette

download-cloud-line composer require orisai/nette-clock

Orisai
Nette Clock

Orisai 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();
	}

}

No release at this moment. Try to create first one.

bar-chart-fill

Statistics

download-cloud-fill
533
star-fill
2
bug-fill
0
flashlight-fill
4d
price-tag-2-line

Badges

guide-fill

Dependencies

php (>=7.4.0 <8.2.0)
nette/di (^3.0.3)
Componette Componette felix@nette.org