martyn82/apha

Apha CQRS/ES library for PHP

v0.1.0 2016-04-04 06:58 UTC

This package is not auto-updated.

Last update: 2024-04-13 16:01:48 UTC


README

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

APHA is a CQRS/ES library for PHP. It contains all the building blocks you need to build an application that implements Command-Query Responsibility Segregation either with or without Event Sourcing.

APHA provides:

  • Typed command and event handling with annotations
  • Using MongoDB as event store and/or read store
  • Using ElasticSearch as read store
  • Replay of events
  • Sagas
  • Event scheduling (experimental)

Prerequisites

Requirements:

  • PHP 7+
  • Composer

Optional:

  • MongoDB
  • ElasticSearch

Installation

$ composer install

Usage

Run the tests:

$ bin/phing test:unit

Use in your own project:

$ composer require martyn82/apha:~0.1

Documentation

Currently, there is no API documentation available. Coming soon!

Examples

Some quickstart examples are available in the examples directory. You can run them from the command-line by executing:

$ php examples/ ...

Licensing

Please consult the file named LICENSE in the root of the project.