briannesbitt/Carbon
A simple PHP API extension for DateTime. observed · 2026-10-09
Health v2 · maintenance only
98/100
- Activity 98
- Release rhythm 98
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 21
- age_days: 5156
- days_rel: 18
- days_push: 12
- n_releases_24m: 30
Adoption not part of the score
16590 stars · 1284 forks observed · 2026-10-09
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-10-09 · a52f89cd6090
- homepage: https://carbon.nesbot.com/ · fetched 2026-10-12 · b3dc07a33ba9
- site_page: https://carbon.nesbot.com/guide/getting-started/introduction.html · fetched 2026-10-12 · 105625a42cfb
- site_page: https://carbon.nesbot.com/develop/changelog.html · fetched 2026-10-12 · 9467d5f256a8
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| briannesbitt/Carbon | main | 98 |
For agents
markdown · JSON · MCP: product_card(name="briannesbitt/Carbon")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem