briannesbitt/Carbon
A simple PHP API extension for DateTime. observed · 2026-08-28
Health v2 · maintenance only
97/100
- Activity 97
- Release rhythm 96
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 26
- age_days: 5107
- days_rel: 25
- days_push: 18
- n_releases_24m: 26
Adoption not part of the score
16599 stars · 1286 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Carbon is a PHP library extending the native DateTime class with a fluent, immutable-friendly API for date and time manipulation. It supports date arithmetic, timezone conversion, comparisons, and human-readable localized formatting in hundreds of languages.
Use cases
- format dates as '2 minutes ago' in PHP
- add or subtract days and weeks from a date
- convert dates between time zones
- localize date formatting for multiple languages
- compare and test dates in unit tests with mocked now
- parse and format RFC 2822 or ISO dates
When to choose
- you write PHP and need richer date handling than DateTime
- you need human-readable relative dates in many languages
- you use Laravel or Symfony and want idiomatic date handling
- you need immutable date objects to avoid mutation bugs
When to avoid
- you work outside PHP
- you only need trivial date formatting already covered by DateTime
- you need a language-agnostic date library for JavaScript or Python
Facets
library · maturity stable
date-time internationalization sdk developer-tools web-development php cross-platform datetime php-library timezone immutable-dates human-readable-dates laravel localization
4 sources
- readme: https://github.com/briannesbitt/Carbon · fetched 2026-08-28 · a52f89cd6090
- homepage: https://carbon.nesbot.com/ · fetched 2026-08-29 · b3dc07a33ba9
- site_page: https://carbon.nesbot.com/guide/getting-started/introduction.html · fetched 2026-08-29 · c16c2c337490
- site_page: https://carbon.nesbot.com/develop/changelog.html · fetched 2026-08-29 · 803c63c3c4fd
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| briannesbitt/Carbon | main | 97 |
For agents
markdown · JSON · MCP: product_card(name="briannesbitt/Carbon")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem