prooph/snapshot-store
60.7
Adequate · 9 November 2026
294
lines of production code
PHP
primary language
7
measurements over time
What this system is
This is a PHP library that provides infrastructure for persisting and retrieving domain model snapshots. It offers a \SnapshotStore\ interface with an in-memory implementation for testing and a composite store for chaining multiple storage backends. The system also includes a serialization layer with a callback-based serializer and a container factory to simplify dependency injection setup.
Features
Introduce snapshot store and serialization infrastructure
The library now provides a core snapshot storage API with the \SnapshotStore\ interface, enabling applications to persist and retrieve domain snapshots. A concrete \InMemorySnapshotStore\ implementation is included for testing or lightweight scenarios, while a \CompositeSnapshotStore\ allows chaining multiple stores. Additionally, a \Serializer\ interface and a \CallbackSerializer\ implementation allow custom serialization logic to be injected for converting aggregate roots to and from storage formats.
src · high confidence
New CompositeSnapshotStoreFactory for container integration
A new CompositeSnapshotStoreFactory has been added to the container layer, enabling the automatic assembly of multiple snapshot stores into a single composite store via the dependency injection container. This allows users to configure and retrieve a composite snapshot store through standard container resolution, simplifying the setup of composite snapshot store implementations.
src/Container · high confidence
Behavioural changes
Support for PHP 8 and updated support channels
The library now supports PHP 8, with CI testing extended to include PHP 7.2, 7.3, 7.4, and 8.0. Additionally, the README has been updated to direct users to Stack Overflow for support and GitHub issues for bug reports, replacing the previous Google Groups and forum links.
(repo-wide) · high confidence
Test coverage
Added tests for CompositeSnapshotStoreFactory; Added tests for snapshot store components.
Dependencies
Update PHP and dependency versions in composer.json
The project now supports PHP 8.0 in addition to 7.1, and has upgraded several dependencies: PHPUnit to 6.0/9.3, Prophecy to 1.9, and prooph/php-cs-fixer-config to 0.3/0.4. New dependencies psr/container and sandrokeil/interop-config have been added, while the custom repository for prophecy and the malukenho/docheader package have been removed.
(dependencies) · medium 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 61 → 61 (+0.0)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.
Lenses
- Code Health 71 → 71 (+0.0)
- Architecture 69 → 69 (+0.0)
- Maturity 54 → 54 (+0.0)
- Readiness 58 → 58 (+0.0)
- Security 100 → 100 (+0.0)
Resolved (3)
- Documentation: contradicts the code (docs/snapshot_store.md)
- Documentation: no installation or build instructions (README.md)
- Documentation: no project overview (README.md)
New (1)
- Documentation: no build, run or usage example (README.md)
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
prooph/snapshot-store 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 9 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 2f84cfeb9d116974b63a1e3304c0849776c206b7 — the exact code this score is about.
- Scored under rubric-2026.11.2 — 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.3+preprod-bb0cb800cd0f.