PHPackages                             backslashphp/backslash - 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. backslashphp/backslash

ActiveLibrary

backslashphp/backslash
======================

CQRS and Event Sourcing infrastructure for modern PHP

2.5.0(2mo ago)91.7k2MITPHPPHP ^8.2CI passing

Since Dec 18Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/backslashphp/backslash)[ Packagist](https://packagist.org/packages/backslashphp/backslash)[ Docs](https://github.com/backslashphp/backslash)[ RSS](/packages/backslashphp-backslash/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (17)Used By (0)

[![](./docs/backslashphp-logo.png)](./docs/backslashphp-logo.png)

[![Latest Version](https://camo.githubusercontent.com/2cbe4374a7541bedf4957393bec28643f6cbe7990336d2c0094e3a8c64e9e9aa/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6261636b736c6173687068702f6261636b736c6173682e737667)](https://github.com/backslashphp/backslash/releases)[![Composer](https://camo.githubusercontent.com/54400f734172caacce0dd9db64ff7460ba77532598b5ea4782858f1ea50f3198/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6d706f7365722d6261636b736c6173687068702f6261636b736c6173682d6c6967687467726179)](https://packagist.org/packages/backslashphp/backslash)[![PHP](https://camo.githubusercontent.com/7c3ac6f33f03ec0158cf3dcb8fb72a50bbd6da598ef062b8c85ad2f578c08e58/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6261636b736c6173687068702f6261636b736c617368)](https://camo.githubusercontent.com/7c3ac6f33f03ec0158cf3dcb8fb72a50bbd6da598ef062b8c85ad2f578c08e58/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6261636b736c6173687068702f6261636b736c617368)[![Software License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)

Backslash
=========

[](#backslash)

**Modern and opinionated PHP library designed to facilitate the integration of CQRS and Event Sourcing patterns in your application. Fully compliant with the [Dynamic Consistency Boundary](https://dcb.events/specification/) specification.**

> **DISCLAIMER**: While Backslash has been used in production for many years at the [FNQLHSSC](https://cssspnql.com/en/), it was originally tailored for a specific environment. As such, this library is provided *as is*, without any guarantees, warranties, or official support.

---

Try it in action
----------------

[](#try-it-in-action)

The [demo application](https://github.com/backslashphp/demo) repository is the ideal starting point for learning Backslash. Feel free to fork it and start experimenting!

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

[](#installation)

Add Backslash to your project with [Composer](https://getcomposer.org/):

```
composer require backslashphp/backslash
```

Requirements
------------

[](#requirements)

- PHP 8.2 or newer
- `ext-pdo` (MySQL or SQLite) extension enabled

Documentation
-------------

[](#documentation)

See  for complete documentation.

Testing
-------

[](#testing)

```
vendor/bin/phpunit
```

Credits
-------

[](#credits)

Backslash was crafted by [Maxime Gosselin](https://github.com/maximegosselin) in Québec, Canada.

License
-------

[](#license)

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

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance84

Actively maintained with recent releases

Popularity26

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 95.5% 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 ~50 days

Recently: every ~12 days

Total

17

Last Release

80d ago

Major Versions

1.x-dev → 2.0.02024-06-19

PHP version history (2 changes)1.0.0PHP ^8.1

2.0.6PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/4efed0d18fdb420bcab4a89c4e7db7276ddfb9d713c6c3b6ad60106134028622?d=identicon)[maximegosselin](/maintainers/maximegosselin)

---

Top Contributors

[![maximegosselin](https://avatars.githubusercontent.com/u/3958246?v=4)](https://github.com/maximegosselin "maximegosselin (42 commits)")[![garak](https://avatars.githubusercontent.com/u/179866?v=4)](https://github.com/garak "garak (1 commits)")[![localheinz](https://avatars.githubusercontent.com/u/605483?v=4)](https://github.com/localheinz "localheinz (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/backslashphp-backslash/health.svg)

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

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.3k86.3M2.2k](/packages/symfony-symfony)[kreait/firebase-php

Firebase Admin SDK

2.4k39.7M72](/packages/kreait-firebase-php)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

169661.4M4.8k](/packages/nesbot-carbon)[simplesamlphp/saml2

SAML2 PHP library from SimpleSAMLphp

30317.2M40](/packages/simplesamlphp-saml2)[eventsauce/eventsauce

A pragmatic event sourcing library for PHP with a focus on developer experience.

8632.1M47](/packages/eventsauce-eventsauce)

PHPackages © 2026

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