sebastianbergmann/version
58.4
Weak · 17 November 2026
521
lines of production code
PHP
primary language
5
measurements over time
What this system is
Behavioural changes
1 commit (0 fixes) modifying tools/.php-cs-fixer
A change to existing behaviour in tools/.php-cs-fixer — 1 commit, 20 files: “Manage PHP-CS-Fixer with Composer instead of Phive”.
tools/.php-cs-fixer · medium confidence · unverified
Library renamed to sebastian/version and API method renamed
The library has been renamed to sebastian/version, and the public API method getVersion() has been renamed to asString(). The README has been updated to reflect the new name, the new Composer installation command, and the method rename. Additionally, the behavior of asString() has changed: when a release series tag (X.Y) is provided, it now prefers tags matching that specific series (X.Y.\*) before falling back to any tag, and the PEAR installation method has been removed in favor of Composer only.
(repo-wide) · high confidence
Phive binary added to version control and PHPStan configured as the static analysis tool
The project now manages the Phive binary directly in the repository (tools/phive) and uses it to install PHPStan, which replaces Psalm as the static analysis tool. A symlink (tools/phpstan) points to the installed PHPStan binary, and the configuration includes strict rules and type-coverage extensions to improve code quality checks.
tools · high confidence
Refactored version detection to use proc\_open and strict typing
The Version class has been rewritten to use modern PHP features, including strict types, readonly classes, and explicit return types. The underlying mechanism for detecting Git information has changed from using exec() to proc\_open(), which avoids spawning a shell and improves security and reliability. Additionally, the logic for parsing Git tags has been simplified to always use the last segment of the git describe output, and the class no longer relies on a separate autoload.php file.
src · high confidence
Removal of legacy build tooling and configuration files
The build directory has been cleaned up by removing several obsolete configuration and tooling files, including the PEAR package manifest (package.xml), documentation generation config (phpdox.xml), code quality rulesets (phpmd.xml, PHPCS ruleset.xml and associated sniffs), and the PHPUnit configuration (phpunit.xml). A new PHP script (extract-release-notes.php) has been added to the build/scripts directory to extract release notes from the ChangeLog.md file based on a provided version tag.
build · high confidence
Test coverage
Removed test bootstrap file
The test bootstrap file (tests/bootstrap.php) has been removed. This file previously handled the autoloading of the source code for the test suite by requiring the main autoload script.
tests · high confidence
Dependencies
Dropped support for PHP 7.x and upgraded PHPStan tooling
The project now requires PHP 8.4 or higher, dropping support for PHP 7.1, 7.2, and 7.3. Additionally, the development environment has been updated to use PHPStan 2.2.16 along with its strict rules and extension installer, ensuring stricter static analysis for future development.
(dependencies) · high confidence
Updated PHPStan static analysis tooling to version 2.2.16
The local PHPStan installation in tools/.phpstan has been updated to version 2.2.16, along with its extensions phpstan-strict-rules (2.0.12) and ergebnis/phpstan-rules (2.14.0). This upgrade brings stricter static analysis rules and improved compatibility with modern PHP versions, enhancing the detection of potential code issues during development.
tools/.phpstan · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 58.4 → 58.4 (0.0)
- Rubric changed (rubric-2026.11.2 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 100.0 → 100.0 (0.0)
- Architecture 69.0 → 69.0 (0.0)
- Maturity 50.3 → 50.3 (0.0)
- Readiness 53.6 → 53.6 (0.0)
- Security 81.2 → 81.2 (0.0)
Resolved (1)
- No tests found
Changes since last survey
- 16 commits — 16 feature/other, 0 fixes
By area
- (root) — 6 commits
- (repo) — 4 commits
- tools/.phpstan — 4 commits
- tools/.php-cs-fixer — 1 commit
- tools/composer — 1 commit
Notable commits
- change: Include the abbreviated hash of HEAD in the version string when no tag is reachable
- change: Manage PHP-CS-Fixer with Composer instead of Phive
- change: Merge branch '6.0'
- change: Merge branch '6.0'
- change: Merge branch '6.0'
- change: Merge branch '6.0'
- change: Migrate config renovate.json
- change: Prepare release
- change: Prepare release
- change: Remove stale entry
- change: Update dependency ergebnis/phpstan-rules to ^2.17.1
- change: Update dependency ergebnis/phpstan-rules to ^2.17.1
- change: Update dependency phpstan/phpstan to ^2.3.6
- change: Update tools
- change: Use phpstan/phpstan-deprecation-rules
- change: Use the abbreviated hash of HEAD for the version string of a release series also when HEAD is tagged
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
sebastianbergmann/version 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 a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 17 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 0c642c8b663398a9b6cb84d971aa58dc92ae8974 — the exact code this score is about.
- Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.84+preprod-d645ca9bbedd.