dev-development 2025-06-19 11:32 UTC

This package is not auto-updated.

Last update: 2025-06-19 14:10:40 UTC


README

PHP Version Latest Version License

A modern PHP 8.3+ implementation of the Command Query Responsibility Segregation (CQRS) pattern, built with performance and scalability in mind.

โœจ Features

  • ๐Ÿš€ HTTP and Queue-based Command Processing
  • ๐Ÿ”„ Asynchronous Task Processing with RoadRunner
  • ๐Ÿ“ฆ Dependency Injection with PSR-11 Container
  • ๐ŸŽฏ Event-Driven Architecture using Symfony Event Dispatcher
  • ๐ŸŒ PSR-7/PSR-17 HTTP Messages for request/response handling
  • ๐Ÿ›  Built-in Retry Mechanism for failed tasks
  • ๐Ÿ“Š Logging with PSR-3 compatible loggers
  • ๐Ÿงช Strict Types and modern PHP 8.3+ features

๐Ÿ“‹ Requirements

  • PHP 8.3 or higher
  • RoadRunner
  • Composer

๐Ÿš€ Installation

composer require molibdenius/cqrs

๐Ÿ— Project Structure

src/
โ”œโ”€โ”€ ActionBus/         # Command/Query bus implementation
โ”œโ”€โ”€ Dispatcher/        # HTTP and Queue dispatchers
โ”œโ”€โ”€ Event/             # Event classes and subscribers
โ”œโ”€โ”€ EventLoop/         # Event loop implementations
โ”œโ”€โ”€ Exception/         # Custom exceptions
โ”œโ”€โ”€ Registry/          # Action and handler registry
โ””โ”€โ”€ Result/            # Result objects

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ“ง Contact