Skip to content

CQRS and Event Sourcing infrastructure for modern PHP

License

Notifications You must be signed in to change notification settings

backslashphp/backslash

Repository files navigation

Backslash

Latest Version Composer PHP Software License

Modern and opinionated PHP library designed to facilitate the integration of CQRS and Event Sourcing patterns in your application.

A demo application is available to see Backslash in action.

Version 2 of Backslash has been completely rewritten to align with Dynamic Consistency Boundary principles, as outlined by Sara Pellegrini in her Kill Aggregate blog series. Nevertheless, the traditional DDD approach of implementing Event Sourcing with aggregates is still possible.

Disclaimer

While Backslash has been used in production for many years at FNQLHSSC, it was tailored to meet the needs of a specific environment, and it may lack the robustness, flexibility, or polish expected in a widely-adopted, general-purpose library. This library is provided as-is, with no guarantees, warranties, or support.

If you are exploring CQRS or Event Sourcing, you may use Backlash as a learning resource to understand these concepts in practice.

Installation

Add Backslash to your project with Composer:

composer require backslashphp/backslash

Requirements

  • PHP version 8.1 or higher
  • json and pdo extensions enabled

Testing

vendor/bin/phpunit

Credits

Backslash was crafted by Maxime Gosselin in Québec, Canada.

License

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

About

CQRS and Event Sourcing infrastructure for modern PHP

Resources

License

Stars

Watchers

Forks

Languages