backslashphp/backslash

CQRS and Event Sourcing infrastructure for modern PHP

1.0.2 2024-02-08 13:05 UTC

This package is not auto-updated.

Last update: 2024-04-18 14:07:15 UTC


README

Latest Version Composer PHP Software License

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

Domain-centric — Implement complex domain logic using aggregates and events.

Event-driven — Efficiently compute query models and initiate actions based on domain events.

Command-oriented — Decouple the application logic from the UI by dispatching commands to designated handlers.

Test-friendly — Validate expected code behavior with Given-When-Then scenarios.

Control-focused — Tailor custom middleware and storage adapters to suit your specific requirements.

Framework-agnostic — Integrate with your preferred framework or use it independently.

Documentation

Documentation can be found here.

A demo application is also available for learning purposes.

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 in Canada by Maxime Gosselin.

License

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