2017 © Pedro Peláez
 

library prooph-event-store-module

ZF2 module that provides default functionality to use ProophEventStore in a ZF2 application

image

prooph/prooph-event-store-module

ZF2 module that provides default functionality to use ProophEventStore in a ZF2 application

  • Sunday, May 3, 2015
  • by prooph
  • Repository
  • 2 Watchers
  • 2 Stars
  • 2,357 Installations
  • PHP
  • 1 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 1 % Grown

The README.md

ProophEventStoreModule

[deprecated] Zend Framework 2 Module for ProophEventStore This module only support ProophEventStore <= 2.x. If you want to use PES v3+ with ZF2 then checkout proophessor, (*1)

Build Status Coverage Status, (*2)

Installation

You can install ProophEventStoreModule via composer by adding "prooph/prooph-event-store-module": "~2.0" as requirement to your composer.json., (*3)

Post installation

Enabling it in your application.config.phpfile., (*4)

<?php
return array(
    'modules' => array(
        // ...
        'ProophEventStoreModule',
    ),
    // ...
);

Configuration

DB Configuration

Copy the prooph.eventstore.db.local.php to your config/autoload directory and adjust the config to meet your needs. This config has the .local.php cause it requests you to configure a database connection (if you do not use the application wide configured Zend\Db\Adapter\Adapter) and should not be included in version control., (*5)

EventStore Configuration

Copy the prooph.eventstore.global.php to your config/autoload directory and adjust the config to meet your needs., (*6)

Retrieve ProophEventStore

The ProophEventStore can be retrieved from ServiceManager by using the alias prooph.event_store, (*7)

$eventStore = $services->get('prooph.event_store');

The Versions