PHPackages                             headsnet/carbon-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. headsnet/carbon-clock

ActiveLibrary

headsnet/carbon-clock
=====================

A clock interface and implementation using the Carbon date manipulation library

v0.1.1(1y ago)26.0k↑50%MITPHPPHP &gt;8.1

Since Aug 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/headsnet/carbon-clock)[ Packagist](https://packagist.org/packages/headsnet/carbon-clock)[ RSS](/packages/headsnet-carbon-clock/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

[![Build Status](https://github.com/headsnet/carbon-clock/actions/workflows/ci.yml/badge.svg)](https://github.com/headsnet/carbon-clock/actions/workflows/ci.yml/badge.svg)[![Latest Stable Version](https://camo.githubusercontent.com/b267f55854f1bb2755338d7666941b266e6992a652ef3365fa859091cf1e36b8/68747470733a2f2f706f7365722e707567782e6f72672f68656164736e65742f636172626f6e2d636c6f636b2f76)](//packagist.org/packages/headsnet/carbon-clock)[![Total Downloads](https://camo.githubusercontent.com/98c05df72891ba39a78a45c1ca801c6e26e8a99b384169765de7cf5cf2a89f87/68747470733a2f2f706f7365722e707567782e6f72672f68656164736e65742f636172626f6e2d636c6f636b2f646f776e6c6f616473)](//packagist.org/packages/headsnet/carbon-clock)[![License](https://camo.githubusercontent.com/971d6482d3f093c3089bf6e8252d886b1af36ae6a0d75c9add7b7396ebd3231d/68747470733a2f2f706f7365722e707567782e6f72672f68656164736e65742f636172626f6e2d636c6f636b2f6c6963656e7365)](//packagist.org/packages/headsnet/carbon-clock)

Carbon Clock
============

[](#carbon-clock)

A clock interface and implementation using the [Carbon](https://carbon.nesbot.com/docs/) date manipulation library.

### Usage

[](#usage)

Wherever you need access to the system time, inject a clock implementation by typehinting against the `Clock` interface.

In production environments, create a service from the `SystemClock`, and arrange for this to be injected wherever the `Clock` interface is used.

During testing, you can substitute the `FrozenClock` implementation, which will provide additional features for freezing time, and otherwise manipulating it to make testing time sensitive code much easier.

### Contributing

[](#contributing)

Contributions are welcome. Please submit pull requests with one fix/feature per pull request.

Composer scripts are configured for your convenience:

```
> composer test       # Run test suite
> composer cs         # Run coding standards checks
> composer cs-fix     # Fix coding standards violations
> composer static     # Run static analysis with Phpstan

```

### Licence

[](#licence)

This code is released under the MIT licence. Please see the LICENSE file for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Every ~661 days

Total

2

Last Release

715d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/baad3e4bf78f55c3242e2e84839614395ce22d21da10fd4379a57fcf2608611d?d=identicon)[benr77](/maintainers/benr77)

---

Top Contributors

[![benr77](https://avatars.githubusercontent.com/u/2156742?v=4)](https://github.com/benr77 "benr77 (5 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/headsnet-carbon-clock/health.svg)

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

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M350](/packages/tymon-jwt-auth)[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[spatie/laravel-sitemap

Create and generate sitemaps with ease

2.6k14.6M107](/packages/spatie-laravel-sitemap)[statamic/cms

The Statamic CMS Core Package

4.8k3.2M720](/packages/statamic-cms)[team-reflex/discord-php

An unofficial API to interact with the voice and text service Discord.

1.1k379.4k24](/packages/team-reflex-discord-php)[temporal/sdk

Temporal SDK

4002.2M18](/packages/temporal-sdk)

PHPackages © 2026

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