briannesbitt/Carbon
This system is a modernized PHP date and time manipulation library that provides a comprehensive API for parsing, formatting, and comparing dates and intervals. It features robust localization support with extensive language and region coverage, alongside a command-line interface for developer tools. The codebase has been refactored into focused traits and specialized exception classes to improve type safety and maintainability, while integrating with modern PHP standards and frameworks like Laravel and Doctrine.
61.9
Adequate · 2 August 2026
54k
lines of production code
PHP
primary language
2
bus factor · 404 authors in all
3
measurements over time
How it got here
2012–2015 · Modernization and test expansion
This period focused on modernizing the codebase by upgrading to PHP 8.1+ and removing legacy code and tests. Significant effort was invested in expanding test coverage for date manipulation, intervals, and localization, while introducing new helper classes and static analysis configurations to improve code quality and maintainability.
11 changes
2016–2018 · API expansion and test coverage
This period focused on expanding the Carbon library's public API by introducing specific exception classes, dedicated traits for date-time logic, and a PSR-20 clock interface integration. The work was heavily supported by comprehensive test suites for new components like CarbonPeriod, CarbonImmutable, and the Laravel locale synchronization feature.
9 changes
2019 · CLI and static analysis tooling
This period focused on expanding Carbon's ecosystem with a new command-line interface and enhanced static analysis support. The team introduced the Carbon CLI for installation and execution, while also adding PHPStan extensions to improve macro type safety. Comprehensive test coverage was added for the new CLI components, language/region data, and macro context nesting.
9 changes
2020–2023 · PHP 8.2 compatibility and test coverage
This period focused on ensuring compatibility with PHP 8.2 by introducing wrapper classes for deprecated or removed features, such as DatePeriod and Translator. Significant effort was also dedicated to expanding test coverage, including comprehensive unit tests for new enum types, exception classes, and dynamic interval handling.
7 changes
Survey your own repository
briannesbitt/Carbon was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point the surveyor at a repository you know and see whether you agree with it.
About this page
- The description of this project is derived from its own commit history, not from its README.
- The score is its highest published measurement, taken on 2 August 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 7d6a63eb4c — the exact code this score is about.
- Scored under rubric rubric-2026.08.18. Score the same commit under that rubric and you get the same number.