PHPackages                             orisai/nette-clock - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. orisai/nette-clock

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

orisai/nette-clock
==================

Orisai Clock and Symfony Clock integration for Nette

1.1.3(1y ago)211.8k↑78.3%2MPL-2.0PHPPHP 7.4 - 8.4CI failing

Since Aug 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/orisai/nette-clock)[ Packagist](https://packagist.org/packages/orisai/nette-clock)[ Docs](https://github.com/orisai/nette-clock)[ RSS](/packages/orisai-nette-clock/feed)WikiDiscussions v1.x Synced yesterday

READMEChangelogDependencies (15)Versions (7)Used By (2)

 [![Orisai](https://github.com/orisai/.github/raw/main/images/repo_title.png?raw=true)](https://github.com/orisai/.github/blob/main/images/repo_title.png?raw=true)
 Nette Clock
==================================================================================================================================================================================

[](#nette-clock)

 [Orisai Clock](https://github.com/orisai/clock) and [Symfony Clock](https://github.com/symfony/clock) integration for [Nette](https://nette.org)

 [PSR-20](https://www.php-fig.org/psr/psr-20/) compatible

 📄 Check out our [documentation](docs/README.md).

 💸 If you like Orisai, please [make a donation](https://orisai.dev/sponsor). Thank you!

 [![](https://github.com/orisai/nette-clock/actions/workflows/ci.yaml/badge.svg?branch=v1.x)](https://github.com/orisai/nette-clock/actions?query=workflow:CI+branch:v1.x) [![](https://camo.githubusercontent.com/a505cd11123d039a5e42c6371cff9a1049aafa055ff209ea3fd246e3339b1805/68747470733a2f2f62616467656e2e6e65742f636f766572616c6c732f632f6769746875622f6f72697361692f6e657474652d636c6f636b2f76312e783f63616368653d333030)](https://coveralls.io/github/orisai/nette-clock?branch=v1.x) [![](https://camo.githubusercontent.com/1c9d2e3bbf8581e96811fc020784d277559409ecbe7260259317c2fcd04d1689/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d68747470733a2f2f62616467652d6170692e737472796b65722d6d757461746f722e696f2f6769746875622e636f6d2f6f72697361692f6e657474652d636c6f636b2f76312e78)](https://dashboard.stryker-mutator.io/reports/github.com/orisai/nette-clock/v1.x) [![](https://camo.githubusercontent.com/ae2f87e7affaf66def886170856601b21bde7861ed1ac95dd9d6aa3e09beafae/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f64742f6f72697361692f6e657474652d636c6f636b3f63616368653d33363030)](https://packagist.org/packages/orisai/nette-clock) [![](https://camo.githubusercontent.com/1d34ac3ffd01edf25c565d9baf6ca67ab557631c267795564332201ae67c9bea/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f6f72697361692f6e657474652d636c6f636b3f63616368653d33363030)](https://packagist.org/packages/orisai/nette-clock) [![](https://camo.githubusercontent.com/40b2374865c7727b1568a7b77cc1a8068979ac265d85d659fe73b2d337b458e6/68747470733a2f2f62616467656e2e6e65742f62616467652f6c6963656e73652f4d504c2d322e302f626c75653f63616368653d33363030)](https://choosealicense.com/licenses/mpl-2.0/)

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

}
```

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~147 days

Recently: every ~103 days

Total

7

Last Release

530d ago

PHP version history (4 changes)1.0.0PHP &gt;=7.4.0 &lt;8.2.0

1.0.1PHP &gt;=7.4.0 &lt;8.3.0

1.1.1PHP 7.4 - 8.3

1.1.2PHP 7.4 - 8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20974277?v=4)[Marek Bartoš](/maintainers/mabar)[@mabar](https://github.com/mabar)

---

Top Contributors

[![mabar](https://avatars.githubusercontent.com/u/20974277?v=4)](https://github.com/mabar "mabar (23 commits)")

---

Tags

clockdatedatetimenettenette-frameworkorisaiphppsrpsr-20symfonytimepsrsymfonynetteclockpsr-20datetimetimedateorisai

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/orisai-nette-clock/health.svg)

```
[![Health](https://phpackages.com/badges/orisai-nette-clock/health.svg)](https://phpackages.com/packages/orisai-nette-clock)
```

###  Alternatives

[psr/clock

Common interface for reading the clock.

646378.5M528](/packages/psr-clock)[kdyby/datetime-provider

Time provider, providing consistent current date, time, datetime and timezone across the request.

1146.8k2](/packages/kdyby-datetime-provider)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
