sebastianbergmann/environment
63.2
Adequate · 17 November 2026
1.1k
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
167 commits (0 fixes) modifying tools
A change to existing behaviour in tools — 167 commits, 4 files: “Update tools”; “Update PHP-CS-Fixer”; “Go back to Composer 1.10.2”; and 4 more.
tools · medium confidence · unverified
Automated release note extraction for tagged releases
A new build script, extract-release-notes.php, has been added to the build directory. This tool automates the extraction of release notes from the ChangeLog.md file when a specific version tag is provided, facilitating the creation of release artifacts by isolating the relevant changelog entries for that version.
build · high confidence
Modernized build automation and development tooling
The project has overhauled its build and development infrastructure to improve consistency and maintainability. Travis CI has been removed in favor of GitHub Actions, and the build system now manages Composer and PHP-CS-Fixer via Phive in the \tools/\ directory rather than downloading them globally. Static analysis has switched from Psalm to PHPStan (configured at level 10 with strict rules), and the PHPUnit configuration has been updated to enforce stricter standards, including failing on risky tests and requiring coverage metadata. Additionally, Renovate is now configured to automatically manage and automerge dependency updates, and archive exports are cleaned up via \.gitattributes\ to exclude development artifacts.
(repo-wide) · high confidence
Refactor environment detection into dedicated Console, Host, and Runtime classes
The monolithic Environment class has been removed and replaced with specialized components: Console now handles terminal capabilities (color support, interactivity, column width), Host provides system information (hostname, user, OS), and Runtime manages PHP runtime details (code coverage drivers, OPcache/JIT status, binary path). This restructuring improves separation of concerns and modernizes the API with strict typing and dedicated methods for each environment aspect.
src · high confidence
Test coverage
Added tests for Console and Runtime classes
Added new test files \tests/ConsoleTest.php\ and \tests/RuntimeTest.php\ to cover the \Console\ and \Runtime\ classes respectively, while removing the legacy \tests/EnvironmentTest.php\. The new tests verify console interactivity detection, column count retrieval, and runtime environment details such as code coverage driver availability (Xdebug, PCOV, PHPDBG), binary paths, and PHP settings.
tests · high confidence
Dependencies
PHPStan static analysis tooling upgraded to version 2.2.16 with strict rules
The local PHP development environment now uses PHPStan 2.2.16, upgraded from previous 2.1.x/2.2.x versions, alongside phpstan-strict-rules 2.0.12 and ergebnis/phpstan-rules 2.14.0. This update brings stricter static analysis checks to the codebase, including new rules for named arguments, reference passing, and return types, ensuring higher code quality and type safety during development. Also in this area: 1 commit (0 fixes) modifying tools, tools/.phpstan/vendor/phpstan/phpstan-strict-rules; 2 commits (0 fixes) modifying tools, tools/.phpstan/vendor/ergebnis/phpstan-rules; Updated phpstan to version 2.2.17; Updated PHPStan and strict-rules to 2.3.0 and 2.1.0.
tools/.phpstan · medium confidence · unverified
Upgrade to PHP 8.4 and PHPUnit 13, add PHPStan tooling
The project now requires PHP 8.4 (dropping support for older versions) and upgrades the development dependency on PHPUnit to version 13.3.6. A new isolated PHPStan tooling setup has been added under tools/.phpstan, installing PHPStan 2.2.16 along with strict rules and extension installers. The main composer.json also adds a security policy link, optimizes the autoloader, and suggests the ext/posix extension.
(dependencies) · 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 63.2 → 63.2 (0.0)
- Rubric changed (rubric-2026.11.2 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 98.8 → 98.6 (-0.2)
- Architecture 69.0 → 69.0 (0.0)
- Maturity 48.9 → 48.9 (0.0)
- Readiness 79.1 → 79.1 (0.0)
- Security 81.2 → 81.2 (0.0)
Findings
- No change — the same findings as the prior survey.
Changes since last survey
- 13 commits — 12 feature/other, 1 fixes
By area
- tools/.phpstan — 5 commits
- (repo) — 3 commits
- (root) — 2 commits
- tests/RuntimeTest.php — 1 commit
- tools/.php-cs-fixer — 1 commit
- tools/composer — 1 commit
Notable commits
- fix: Fix errors reported by PHPStan
- change: Manage PHP-CS-Fixer with Composer instead of Phive
- change: Merge branch '8.1'
- change: Merge branch '8.1'
- change: Merge branch '8.1'
- change: Remove stale entry
- change: Update dependency ergebnis/phpstan-rules to ^2.17.1
- change: Update dependency phpstan/phpstan to ^2.3.6
- change: Update dependency phpstan/phpstan-phpunit to ^2.1.2
- change: Update dependency phpunit/phpunit to ^13.4.7
- change: Update tools
- change: Use phpstan/phpstan-deprecation-rules
- change: Use phpstan/phpstan-phpunit
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/environment 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 e91b5d80bc2da734d8ed1f7b0d9f4dd9c809cdd9 — 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.