PHPackages                             bashilbers/domain - 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. [Framework](/categories/framework)
4. /
5. bashilbers/domain

AbandonedArchivedLibrary[Framework](/categories/framework)

bashilbers/domain
=================

Adds interfaces and base classes for DomainEvents, Aggregates, Snapshotting (the write part of CQRS). Modeled after DPC14

691PHP

Since Nov 26Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

bashilbers/domain
=================

[](#bashilbersdomain)

A collection of interfaces and base classes for DomainEvents, Aggregates and Snapshotting (the write part of CQRS). Modeled after DPC14

[![Gitter chat](https://camo.githubusercontent.com/83f07545d16fe4dafa22cf6bd7e1456ecc153d909df5320b9d3a9d05ceebef0e/68747470733a2f2f6261646765732e6769747465722e696d2f62617368696c626572732f646f6d61696e2e706e67)](https://gitter.im/bashilbers/domain)[![PHP ~5.5](https://camo.githubusercontent.com/03a39d243cbc9b4a7e44e55bf7fec1d3074d3d49aa54ccebee2b22570361e1e9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344352e352d3838393242462e737667)](https://secure.php.net)[![Latest Stable Version](https://camo.githubusercontent.com/6cff2f7d09f7d1372e01233bc70209e736f8fed2a015fdc537eec48b21354066/68747470733a2f2f706f7365722e707567782e6f72672f62617368696c626572732f646f6d61696e2f762f737461626c65)](https://packagist.org/packages/bashilbers/domain)[![Dependency Status](https://camo.githubusercontent.com/c48377816774464088d9111cb699fb830471651b8f61e200fbe9d7bb2b9e85b7/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3535616435396131363433373339303031373030303032352f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/55ad59a16437390017000025)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Travis build status](https://camo.githubusercontent.com/3b1905d1dfb73b74f5baa46e8cbfe28ffee172b2d8778eba81335f6800cfb6ec/68747470733a2f2f7472617669732d63692e6f72672f62617368696c626572732f646f6d61696e2e737667)](https://travis-ci.org/bashilbers/domain)[![Scrutinizer build Status](https://camo.githubusercontent.com/904dec8e34eddffde14466489aab81af96fe33267ce434e1a8c528d3b29f17d4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62617368696c626572732f646f6d61696e2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/bashilbers/domain/?branch=master)[![Quality Score](https://camo.githubusercontent.com/32bbae3e199ce27839130aabfe32566555197bc449eebdb4ea31bf7e4ae7e7ea/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62617368696c626572732f646f6d61696e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/bashilbers/domain/?branch=master)

What is this?
-------------

[](#what-is-this)

Nothing. Move along. At the Dutch PHP Conference in 2014 I had been introduced to Event Sourcing and knew directly this was something I wanted to be involved with. This repo is not intended for production usage. It is my personal playground.

Other DDD/ES/CQRS inspirational projects
----------------------------------------

[](#other-dddescqrs-inspirational-projects)

- [EventCentric.Core](https://github.com/event-centric/EventCentric.Core) - Event Sourcing and CQRS in PHP
- [LiteCQRS](https://github.com/beberlei/litecqrs-php) - Small convention based CQRS library for PHP
- [predaddy](https://github.com/szjani/predaddy) - Common DDD classes including an annotation driven message bus and tools for CQRS and Event Sourcing
- [ProophEventSourcing](https://github.com/prooph/event-sourcing) - Provides basic functionality for event-sourced aggregates
- [ProophEventStore](https://github.com/prooph/event-store) - PHP 5.4+ EventStore Implementation
- [ProophServiceBus](https://github.com/prooph/service-bus) - PHP Enterprise Service Bus Implementation supporting CQRS and DDD
- [Malocher EventStore](https://github.com/malocher/event-store) - Event Sourcing Library for PHP
- [Malocher cqrs-esb](https://github.com/malocher/cqrs-esb) - CQRS + Service Bus for PHP
- [Goodby EventSourcing](https://github.com/goodby/event-sourcing) - EventSourcing
- [Governor](https://github.com/davidkalosi/GovernorFramework) - A complete PHP CQRS framework
- [Buttercup.Protects](https://github.com/buttercup-php/protects) - Aggregate business rules protection library
- [Broadway](https://github.com/qandidate-labs/broadway) - Infrastructure and testing helpers for creating CQRS and event sourced applications.
- [Chief](https://github.com/adamnicholson/chief) - Command bus package for PHP
- [Tactician](https://github.com/thephpleague/tactician) - A small, pluggable command bus. Still in active development
- [Simplebus](https://github.com/SimpleBus) - Generic busses for either commands or events

Food for thoughts
-----------------

[](#food-for-thoughts)

- [Mathias Verraes's Practical Event Sourcing presentation](http://joind.in/talk/view/10879)
- [Greg Young's CQRS documents](https://cqrs.files.wordpress.com/2010/11/cqrs_documents.pdf)

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

License
-------

[](#license)

All source code is licensed under the MIT License (MIT). Please see the [License File](LICENSE) for more information.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b5682ecf942b17a0a38601dbdb8ff9b194addd261e41d8ba603ffe6ac16be458?d=identicon)[bashilbers](/maintainers/bashilbers)

---

Top Contributors

[![bashilbers](https://avatars.githubusercontent.com/u/455905?v=4)](https://github.com/bashilbers "bashilbers (17 commits)")

### Embed Badge

![Health badge](/badges/bashilbers-domain/health.svg)

```
[![Health](https://phpackages.com/badges/bashilbers-domain/health.svg)](https://phpackages.com/packages/bashilbers-domain)
```

###  Alternatives

[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

712181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)[laravel/pail

Easily delve into your Laravel application's log files directly from the command line.

91545.3M590](/packages/laravel-pail)

PHPackages © 2026

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