arseto / lumencqrs by arseto

CQRS Template for Laravel/Lumen
198
3
2
Package Data
Maintainer Username: arseto
Maintainer Contact: satriyo.796@gmail.com (Arseto Nugroho)
Package Create Date: 2017-09-15
Package Last Update: 2017-09-17
Language: PHP
License: MIT
Last Refreshed: 2024-11-15 15:13:11
Package Statistics
Total Downloads: 198
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 3
Total Watchers: 2
Total Forks: 2
Total Open Issues: 0

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