sebastianbergmann/exporter
66.0
Adequate · 17 November 2026
1.2k
lines of production code
PHP
primary language
5
measurements over time
What this system is
Features
Customizable object export via ObjectExporter interface
Users can now provide custom logic for exporting specific objects by implementing the new ObjectExporter interface and passing it to the Exporter constructor. The library introduces an ExportContext to track recursion and prevent infinite loops when custom exporters export nested values, and an ObjectExporterChain to manage multiple custom exporters. This allows tailored representations for complex or reflection-sensitive objects (such as protobuf messages) that previously caused issues or were exported generically.
src · high confidence
Removals
Removal of PHPExporter library
The PHPExporter component, which provided utilities for exporting PHP values into human-readable strings (similar to print\_r but with improved handling of nulls, booleans, and recursion), has been removed. This change deletes the Exporter class, the ExporterContext helper for tracking recursive references, and the ExporterException class from the src/PHPExporter directory.
src/PHPExporter · high confidence
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
143 commits (0 fixes) modifying tools
A change to existing behaviour in tools — 143 commits, 5 files: “Update tools”; “\* Install PHPStan using Composer in order to be able to use phpstan/phpstan-strict-rules and tomasvotruba/type-coverage \* Configure phpstan/phpstan-strict-rules, tomasvotruba/type-coverage, and ergebnis/phpstan-rules \* Update PHPStan configuration \* Put Phive binary under version control and manage it through "ant update-tools"”; “Use PHPStan instead of Psalm”; and 6 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 to support the automated creation of releases when a tag is pushed. This utility parses the project's ChangeLog.md file to extract the specific section corresponding to a given version tag, allowing the release process to automatically include the correct changelog entries without manual intervention.
build · high confidence
Repository maintenance and build tooling overhaul
This change introduces a comprehensive update to the project's development infrastructure and documentation. It adds configuration files for PHP-CS-Fixer, PHPStan (level 10), PHPUnit, Infection, and Renovate, while removing the legacy phpunit.xml.dist. The repository now uses .gitattributes to exclude build artifacts and tests from archive exports, updates the license to BSD 3-Clause, and refreshes the README with modern usage examples and CI badges.
(repo-wide) · high confidence
Test coverage
Added test coverage for Exporter and ObjectExporterChain; Added test fixtures for custom object exporters and enum types; Removed PHPExporter test suite.
Dependencies
Major version upgrade to 8.2 with PHP 8.4 requirement and dependency restructuring
The package has been renamed to sebastian/exporter and bumped to version 8.2-dev, requiring PHP 8.4 and the ext-mbstring extension. The dependency on sebastian/recursion-context has been updated to ^8.0.1, and the dev dependency phpunit/phpunit has been upgraded to ^13.3.3. The autoloading strategy has shifted from PSR-0 to classmap, and the repository metadata has been updated to reflect the transfer to Sebastian Bergmann, including new support and security policy links.
(dependencies) · high confidence
Updated PHPStan and strict-rules dependencies
The \tools/.phpstan\ directory has been updated to use PHPStan 2.2.16, phpstan-strict-rules 2.0.12, and ergebnis/phpstan-rules 2.14.0. This upgrade brings stricter static analysis rules to the codebase, including new checks for named arguments, reference parameters, and return types, as well as support for PHP 8.6. Also in this area: 1 commit (0 fixes) modifying tools, tools/.phpstan/vendor/phpstan/phpstan-strict-rules; 4 commits (0 fixes) modifying tools; 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
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 66.1 → 66.0 (-0.1)
- Rubric changed (rubric-2026.11.2 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 98.7 → 97.9 (-0.8)
- Architecture 69.0 → 69.0 (0.0)
- Maturity 54.4 → 54.4 (0.0)
- Readiness 79.1 → 79.1 (0.0)
- Security 85.0 → 85.0 (0.0)
Findings
- No change — the same findings as the prior survey.
Changes since last survey
- 15 commits — 14 feature/other, 1 fixes
By area
- tools/.phpstan — 6 commits
- (repo) — 3 commits
- (root) — 3 commits
- tests/ExporterTest.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 '7.0'
- change: Merge branch '7.0'
- change: Merge branch '7.0'
- change: Remove stale Infection setup
- 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 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/exporter 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 d510c03177707975e791777382e28cc77ba75159 — 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.