PHPackages                             level51/cqrs-utils - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. level51/cqrs-utils

ActiveSilverstripe-module[Utility &amp; Helpers](/categories/utility)

level51/cqrs-utils
==================

Multi-Datastore CQRS utilities for SilverStripe

0398[2 issues](https://github.com/Level51/cqrs-utils/issues)PHPCI failing

Since Nov 8Pushed 2y ago2 watchersCompare

[ Source](https://github.com/Level51/cqrs-utils)[ Packagist](https://packagist.org/packages/level51/cqrs-utils)[ RSS](/packages/level51-cqrs-utils/feed)WikiDiscussions develop Synced 2mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

CQRS 4 SilverStripe
===================

[](#cqrs-4-silverstripe)

Utility Module for implementing the CQRS workflow within a SilverStripe application.

⚠️ **This is work in progress and not ready to use/play around with at all! We are just testing this in a project and will deliver a stable build as soon as we have reached a sufficient amount of added value.**

Read Payload Manifests
----------------------

[](#read-payload-manifests)

Read Payload Manifests defines the data to be stored on a class basis.

Example Manifest (`$read_payload`):

```
class MyObject extends DataObject {

    private static $db = [
        'Title' => 'Varchar',
        'Teaser => 'Text',
        'Content => 'HTMLText'
    ];

    private static $has_many = [
        'Categories' => Category::class
    ];

    private static $read_payload = [
        'ID',                         // required
        'Title'      => 'CoolTitle'   // required, maps to "CoolTitle()"
        'Teaser'     => false,        // not required
        'Content'    => true,         // required (non-shorthand)
        'Author',                     // required (method value)
        'Categories' => true,         // required recursive relation table
        'Tags'       => [             // not required, maps to "getMyTags()"
            'required' => false,
            'mapping' => 'getMyTags'
        ]
    ];

    public function CoolTitle() { ... }

    public function Author() { ... }

    public function getMyTags() { ... }
}
```

Handler
-------

[](#handler)

### Redis

[](#redis)

---

#### Additional Requirements

[](#additional-requirements)

- ext-redis: PHP Redis extension

#### Example Config

[](#example-config)

```
CustomDataObject:
  extensions:
    - CQRSExtension('ID', ['store' => 'RedisPayloadStoreHandler', 'db' => 1])

# Optional, defaults to the values below
RedisPayloadStoreHandler:
  host: 127.0.0.1
  port: 6379
  default_db: 0
```

### MongoDB

[](#mongodb)

---

#### Additional Requirements

[](#additional-requirements-1)

- ext-mongodb: [PHP MongoDB extension](http://php.net/manual/en/mongodb.installation.php)
- mongodb/mongodb: [MongoDB PHP Library](https://docs.mongodb.com/php-library/current/)

#### Example Config

[](#example-config-1)

```
CustomDataObject:
  extensions:
    - CQRSExtension('ID', ['store' => 'MongoPayloadStoreHandler', 'db' => 'DB_NAME', 'collection' => 'COLLECTION_NAME'])

# Optional, defaults to the values below
MongoPayloadStoreHandler:
  host: 127.0.0.1
  port: 27017
```

### Elasticsearch

[](#elasticsearch)

---

#### Additional Requirements

[](#additional-requirements-2)

- elasticsearch/elasticsearch: [Elasticsearch PHP Client](https://github.com/elastic/elasticsearch-php)

#### Example Config

[](#example-config-2)

```
CustomDataObject:
  extensions:
    - CQRSExtension('ID', ['store' => 'ElasticsearchPayloadStoreHandler', 'index' => 'INDEX_NAME'])

# Optional, defaults to localhost:9200
ElasticsearchPayloadStoreHandler:
  hosts:
    - localhost:9200
    - { host: elastic.domain.tld, port: 443, scheme: https, user: USERNAME, pass: PASS }
```

Maintainer
----------

[](#maintainer)

- Julian Scheuchenzuber

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.7% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/441f0e8f95c17048417a33f37e35d5ffdd4c07902cbedaf7f5786f4b7c454284?d=identicon)[JZubero](/maintainers/JZubero)

---

Top Contributors

[![JZubero](https://avatars.githubusercontent.com/u/13751426?v=4)](https://github.com/JZubero "JZubero (33 commits)")[![dkliemsch](https://avatars.githubusercontent.com/u/13777159?v=4)](https://github.com/dkliemsch "dkliemsch (13 commits)")

---

Tags

cqrssilverstripe

### Embed Badge

![Health badge](/badges/level51-cqrs-utils/health.svg)

```
[![Health](https://phpackages.com/badges/level51-cqrs-utils/health.svg)](https://phpackages.com/packages/level51-cqrs-utils)
```

###  Alternatives

[foolz/foolfuuka

The FoolFuuka Imageboard

2191.8k](/packages/foolz-foolfuuka)

PHPackages © 2026

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