Giter Club home page Giter Club logo

php-cqrs's Introduction

CQRS Library for PHP

Overview

This library provides interfaces and base classes for implementing the Command Query Responsibility Segregation (CQRS) pattern in PHP. CQRS is a design pattern that separates read and write operations into different models to optimize performance, scalability, and security. This library is designed to simplify the implementation of CQRS in your PHP projects.

Features

  • Command Handlers: Interfaces and base classes to handle commands.
  • Query Handlers: Interfaces and base classes to handle queries.
  • Event Sourcing Support: Basic support for event sourcing.
  • Dependency Injection Ready: Designed to work seamlessly with DI frameworks.
  • Extensible: Easily extend the provided interfaces and base classes to fit your specific needs.

Installation

You can install the library via Composer or by including the source code in your project.

Composer

composer require nontre/cqrs

Manual

Include the source code files in your project. Ensure you maintain the directory structure.

Getting Started

To get started with this CQRS library, follow these steps:

  1. Define Commands and Queries: Create classes for your commands and queries.
  2. Implement Handlers: Implement command and query handlers using the provided interfaces.
  3. Register Handlers: Register your handlers with your dependency injection framework.

Acknowledgements

A significant portion of the source code for this library was extracted and adapted from the CodelyTV repository. We are grateful to CodelyTV for their excellent resources and contributions to the development community. ๐Ÿ˜๐ŸŽฏ Hexagonal Architecture + DDD + CQRS in PHP using Symfony 6

php-cqrs's People

Contributors

nontre12 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.