prooph / prooph-event-store-module
ZF2 module that provides default functionality to use ProophEventStore in a ZF2 application
Installs: 2 464
Dependents: 0
Suggesters: 1
Security: 0
Stars: 2
Watchers: 6
Forks: 0
Open Issues: 0
Requires
- php: >=5.4
- codeliner/array-reader: ~1.1
- prooph/event-store: ~2.0
- prooph/event-store-zf2-adapter: ~0.3
- zendframework/zend-loader: ~2.3
- zendframework/zend-modulemanager: ~2.3
- zendframework/zend-mvc: ~2.3
- zendframework/zend-servicemanager: ~2.3
Requires (Dev)
- phpunit/phpunit: 3.7.*
- satooshi/php-coveralls: dev-master
- zendframework/zend-config: ~2.3
- zendframework/zend-form: ~2.3
- zendframework/zend-log: ~2.3
- zendframework/zend-view: ~2.3
Suggests
- prooph/event-store-doctrine-adapter: If you prefer doctrine, a doctrine-adapter is available, too
- prooph/prooph-service-bus-module: Use ProophServiceBus within your ZF2 project
This package is auto-updated.
Last update: 2022-02-01 12:36:31 UTC
README
[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
Installation
You can install ProophEventStoreModule via composer by adding "prooph/prooph-event-store-module": "~2.0"
as requirement to your composer.json.
Post installation
Enabling it in your application.config.php
file.
<?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.
EventStore Configuration
Copy the prooph.eventstore.global.php to your
config/autoload
directory and adjust the config to meet your needs.
Retrieve ProophEventStore
The ProophEventStore can be retrieved from ServiceManager by using the alias prooph.event_store
$eventStore = $services->get('prooph.event_store');