2017 © Pedro Peláez
 

library cqrs-framework

Micro framework for creating CQRS applications

image

kartenmacherei/cqrs-framework

Micro framework for creating CQRS applications

  • Wednesday, October 11, 2017
  • by belanur
  • Repository
  • 2 Watchers
  • 4 Stars
  • 85 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

CQRS Framework

The goal of this framework is to enable us to quickly bootstrap new CQRS Services while sticking to our very strict coding guidelines. This especially means that any kind of magic should be avoided., (*1)

Components

Request

  • Currently Supports only HTTP get and post verbs.

PostRoute

  • Determines if it is responsible for routing a given URL.
  • Returns a Command

Command

  • Changes the state of a resource (like creating or updating)

GetRoute

  • Determines if it is responsible for routing a given URL.
  • Returns a Query

Query

  • Does not change the state of a resource and only returns existing data.

Using the Framework

Requirements

  • Composer
  • PHP 7.0+

Add the Framework to your composer.json:

    "require": {
        "kartenmacherei/http-framework": "dev-master"
    }

Connect your code to the Framework:

// create a request
$request = Request::fromSuperGlobals();

// create a new instance of the framework
$framework = Framework::createInstance();

// register a Request Route
$framework->registerPostRoute(new LoginRoute());
$framework->registerGetRoute(new WelcomeRoute());

// let the framework process the request
$response = $framework->run($request);

// send the response to the client
$response->flush();

License

This software is licensed under the terms of the MIT license. See LICENSE.md for the full license., (*2)

The Versions

11/10 2017

dev-master

9999999-dev https://bitbucket.org/kartenmacherei/cqrs-framework

Micro framework for creating CQRS applications

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

framework http kartenmacherei

11/10 2017

v0.4

0.4.0.0 https://bitbucket.org/kartenmacherei/cqrs-framework

Micro framework for creating CQRS applications

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

framework http kartenmacherei

11/08 2017

v0.3

0.3.0.0 https://bitbucket.org/kartenmacherei/cqrs-framework

Micro framework for creating CQRS applications

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

framework http kartenmacherei

16/02 2017

v0.2

0.2.0.0 https://bitbucket.org/kartenmacherei/cqrs-framework

Micro framework for creating CQRS applications

  Sources   Download

MIT

The Requires

  • php >=7.0.0

 

framework http kartenmacherei