Thanks to visit codestin.com
Credit goes to github.com

Skip to content

arseto/lumencqrs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

CQRS Template for Laravel\Lumen

Overview

  • Implementation template for CQRS
  • Use laravel/lumen IoC container for dependency injection by default (or you can override it)

Prerequisite

Installation

  • execute composer require arseto/lumencqrs in your project folder
  • For lumen, add this line to the bootstrap/app.php file
$app->register(Arseto\LumenCQRS\Providers\CQRSServiceProvider::class);
  • For laravel, add this line to 'providers' in config/app.php
Arseto\LumenCQRS\Providers\CQRSServiceProvider::class,

Usage

  • This package serves as template to implement CQRS
  • Simply create command-handler pair and query-reader pair then inject the CommandBus and QueryBus to your controller
  • Command-handler and query-reader pair must implement provided interfaces

About

CQRS Template for Lumen Framework

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages