PHPackages                             slick/cqrs-tools - 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. slick/cqrs-tools

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

slick/cqrs-tools
================

Slick/CQRS is an useful library for Event Souring style applications. It has a collection of tools that can speed up Domain Driven Development and CQRS development.

v0.6.1(4y ago)02.1kMITPHPPHP &gt;=7.1

Since Aug 20Pushed 4y ago2 watchersCompare

[ Source](https://github.com/slickframework/cqrs-tools)[ Packagist](https://packagist.org/packages/slick/cqrs-tools)[ Docs](https://github.com/slickframework/cqrs-tools)[ RSS](/packages/slick-cqrs-tools/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (4)Versions (10)Used By (0)

Slick DDD/CQRS/Event Sourcing
=============================

[](#slick-dddcqrsevent-sourcing)

[![Latest Version on Packagist](https://camo.githubusercontent.com/288fb96b8f49e407da0705f6c17aa0d8bdda56ab205d4c140745b7eda58362f5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736c69636b2f637172732d746f6f6c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/slick/cqrs-tools)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/21e2b43e156027c4a5592901f8dfd5aa16444cd464b59e121dc6571ed4cd837b/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f736c69636b6672616d65776f726b2f637172732d746f6f6c732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/slickframework/cqrs-tools)[![Quality Score](https://camo.githubusercontent.com/bc9abcf4560101408e955b078f1dc42b6ad4e794cb76692beb5b64efca847481/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f736c69636b6672616d65776f726b2f637172732d746f6f6c732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/slickframework/cqrs-tools)[![Total Downloads](https://camo.githubusercontent.com/4114176f8c54609e36e54fa7895fb13f3b5c7476f376b534bb6db1f44bfdc53a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736c69636b2f637172732d746f6f6c732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/slickframework/cqrs-tools)

`Slick/CQRSTools` is an useful library for Event Souring style applications. It has a collection of tools that can speed up development using Domain Driven Development and CQRS techniques.

This package is compliant with PSR-2 code standards and PSR-4 autoload standards. It also applies the [semantic version 2.0.0](http://semver.org) specification.

Install
-------

[](#install)

Via Composer

```
$ composer require slick/cqrs-tools
```

Usage
-----

[](#usage)

### Creating events

[](#creating-events)

Events are a simple and descriptive way of recording some action that was done. They usually have some metadata and the values that were used to change the domain. Consider the event of creating a user:

```
