# cakephp/chronos

A standalone DateTime library originally based off of Carbon

Repository: https://github.com/cakephp/chronos
Canonical: https://ross.abutalabs.com/products/cakephp-chronos
Homepage: http://book.cakephp.org/chronos
Language: PHP
License: MIT
License Family: permissive
Topics: php, library, datetime-objects, mutable-objects, calendar-dates, immutable-objects, time
Last push: 2026-08-17T18:21:24+00:00

## Health v2 (maintenance only)
Score: 91/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 78, longevity 100
- inputs: {"age_days": 4004, "days_push": 16, "days_rel": 145, "gap_med": 10.5, "n_releases_24m": 9}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1362, forks 70 (observed 2026-08-28T04:04:30.185336+00:00)

## What it is
CakePHP Chronos is a standalone PHP DateTime library providing immutable datetime, date-only, and time-only objects, originally based on Carbon. It offers a zero-dependency DateTimeImmutable extension with helper methods for date arithmetic, formatting, and calendar date handling.

## Use cases
- work with immutable datetime objects in PHP
- handle calendar dates without time or timezone issues
- perform date arithmetic without side effects
- represent clock times independent of dates
- replace Carbon with a lighter datetime library
- prevent accidental datetime mutation in application code

## When to choose
- you need immutable date/time objects in PHP
- you want a zero-dependency alternative to Carbon
- you need date-only or time-only value objects
- you're building CakePHP applications

## When to avoid
- you need mutable DateTime behavior
- you rely on Carbon-specific APIs or extensions
- you need full i18n translations built in

## Facets
- artifact type: library
- maturity: active
- function: date-time
- domain: developer-tools, web-development
- platform: php
- tags: datetime, immutable-objects, calendar-dates, carbon-alternative, zero-dependency

## Member repositories
- cakephp/chronos (main) score 91

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:30.185336+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:41:29.432337+00:00, confidence not recorded.
  - readme: https://github.com/cakephp/chronos (fetched 2026-08-28T04:04:30.185336+00:00, sha f14f586c8215)
  - homepage: http://book.cakephp.org/chronos (fetched 2026-08-29T11:59:03.731813+00:00, sha 1be8ac17f1b9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
