PHPackages                             rikudou/clock-bundle - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. rikudou/clock-bundle

AbandonedSymfony-bundle[Utility &amp; Helpers](/categories/utility)

rikudou/clock-bundle
====================

Simple Symfony bundle for clock abstraction

v1.0.0(5y ago)0167MITPHPPHP ^7.0

Since Aug 5Pushed 5y ago1 watchersCompare

[ Source](https://github.com/RikudouSage/ClockBundle)[ Packagist](https://packagist.org/packages/rikudou/clock-bundle)[ RSS](/packages/rikudou-clock-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (2)Used By (0)

Simple Symfony bundle I wrote because I'm tired of writing it all the time for each project where I need current time.

Feel free to use it.

Installation
------------

[](#installation)

`composer require rikudou/clock-bundle`

Usage
-----

[](#usage)

1. Typehint the `\Rikudou\Clock\ClockInterface` as your dependency
2. You can now easily test your time dependent functions
3. ???
4. Profit

Services:
---------

[](#services)

- `rikudou.clock.clock` - standard DateTime class
- `rikudou.clock.immutable` - DateTimeImmutable
- `rikudou.clock.fixed_timezone` - DateTime with specified timezone
- `rikudou.clock.fixed_timezone_immutable` - DateTimeImmutable with specified timezone
- `rikudou.clock.default` - the implementation configured as default
- `Rikudou\Clock\ClockInterface` - alias to `rikudou.clock.default`, autowiring supported

Configuration
-------------

[](#configuration)

Generated automatically via `php bin/console config:dump rikudou_clock > config/packages/rikudou_clock.yaml`

```
# Default configuration for extension with alias: "rikudou_clock"
rikudou_clock:

    # The clock that will be used as default when injecting interface
    default_clock:        rikudou.clock.clock # One of "rikudou.clock.clock"; "rikudou.clock.immutable"; "rikudou.clock.fixed_timezone"; "rikudou.clock.fixed_timezone_immutable"

    # The timezone used for timezoned clocks
    timezone:             UTC
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2111d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/34494ac1f08edc3758e51d84236ca1bdf384927e6444f2edb884e8cc585691b2?d=identicon)[RikudouSage](/maintainers/RikudouSage)

---

Top Contributors

[![RikudouSage](https://avatars.githubusercontent.com/u/13106547?v=4)](https://github.com/RikudouSage "RikudouSage (7 commits)")

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/rikudou-clock-bundle/health.svg)

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

###  Alternatives

[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[netgen/content-browser

Netgen Content Browser is a Symfony bundle that provides an interface which selects items from any kind of backend and returns the IDs of selected items back to the calling code.

14112.1k8](/packages/netgen-content-browser)[sineflow/clamav

ClamAV PHP Client for Symfony

10168.5k](/packages/sineflow-clamav)[spomky-labs/pwa-bundle

Progressive Web App Manifest Generator Bundle for Symfony.

6144.4k1](/packages/spomky-labs-pwa-bundle)[symfony/ux-cropperjs

Cropper.js integration for Symfony

19280.3k3](/packages/symfony-ux-cropperjs)

PHPackages © 2026

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