PHPackages                             treehouselabs/snapshot-store - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. treehouselabs/snapshot-store

ActiveLibrary

treehouselabs/snapshot-store
============================

2.0(8y ago)015511MITPHPPHP &gt;=7.0

Since May 11Pushed 8y ago6 watchersCompare

[ Source](https://github.com/treehouselabs/snapshot-store)[ Packagist](https://packagist.org/packages/treehouselabs/snapshot-store)[ RSS](/packages/treehouselabs-snapshot-store/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (1)

Snapshot Store
==============

[](#snapshot-store)

[![Latest Version on Packagist](https://camo.githubusercontent.com/117056bc84a0ab90fb8fc207b294c14c93c3e70277f8c891416b712f3e9e5113/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74726565686f7573656c6162732f736e617073686f742d73746f72652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/treehouselabs/snapshot-store)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/80159609ff6085d17bf58210f5693b31eefd72792ee283ea68314e298fec53d3/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f74726565686f7573656c6162732f736e617073686f742d73746f72652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/treehouselabs/snapshot-store)[![Coverage Status](https://camo.githubusercontent.com/1239a49b1b482caf5b47a57bbd17b16f70420bd7f45548a7c7e76f48ca4c14a9/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f74726565686f7573656c6162732f736e617073686f742d73746f72652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/treehouselabs/snapshot-store/code-structure)[![Quality Score](https://camo.githubusercontent.com/d4842da0b0d64b421dfde9b3a67900949fb40a78dc4927eb91b748d8155d7186/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f74726565686f7573656c6162732f736e617073686f742d73746f72652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/treehouselabs/snapshot-store)

Library for storing snapshots

Installation
------------

[](#installation)

```
composer require treehouselabs/snapshot-store
```

Database
--------

[](#database)

Basic SQL schema for snapshot store. Adapt to your needs.

```
CREATE TABLE `snapshot_store` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `aggregate_id` varchar(255) NOT NULL,
  `payload` longtext NOT NULL,
  `version` int(11) NOT NULL,
  `datetime_created` datetime NOT NULL,
  `checksum` varchar(255) NOT NULL,
  `class` varchar(255) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `UNIQ_D1F10563D0BBCCBEBF1CD3C3` (`aggregate_id`,`version`,`checksum`)
)
```

Testing
-------

[](#testing)

```
composer test
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Credits
-------

[](#credits)

- [Jeroen Fiege](https://github.com/fieg)
- [All Contributors](../../contributors)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~4 days

Total

2

Last Release

3281d ago

Major Versions

1.0 → 2.02017-05-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/5eceacbc3912547ac51ba584798cc5a7c1bfae49b714978f62b6e1af389307dd?d=identicon)[fieg](/maintainers/fieg)

---

Top Contributors

[![fieg](https://avatars.githubusercontent.com/u/1086908?v=4)](https://github.com/fieg "fieg (10 commits)")

---

Tags

event sourcingsnapshot-store

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/treehouselabs-snapshot-store/health.svg)

```
[![Health](https://phpackages.com/badges/treehouselabs-snapshot-store/health.svg)](https://phpackages.com/packages/treehouselabs-snapshot-store)
```

###  Alternatives

[broadway/broadway

Infrastructure and testing helpers for creating CQRS and event sourced applications.

1.5k2.0M53](/packages/broadway-broadway)[temporal/sdk

Temporal SDK

4002.2M18](/packages/temporal-sdk)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[patchlevel/event-sourcing

A lightweight but also all-inclusive event sourcing library with a focus on developer experience

198283.8k7](/packages/patchlevel-event-sourcing)[broadway/broadway-bundle

Symfony bundle for broadway/broadway.

68853.8k7](/packages/broadway-broadway-bundle)[patchlevel/event-sourcing-bundle

symfony bundle for patchlevel/event-sourcing

50146.1k1](/packages/patchlevel-event-sourcing-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
