goten4 / gtn-persist-base
Zend Framework 2 Module that provides Persistence basic functionality (trying to follow DDD principles)
Installs: 2 199
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.3
- zendframework/zend-loader: ~2.3
- zendframework/zend-modulemanager: ~2.3
Requires (Dev)
- phpunit/phpunit: 3.7.*
- satooshi/php-coveralls: dev-master
This package is not auto-updated.
Last update: 2020-01-10 15:02:47 UTC
README
Introduction
GtnPersistBase is a Zend Framework 2 module providing the basics for persistence trying to follow DDD principles.
Requirements
- Zend Framework 2
Installation
Simply clone this project into your ./vendor/
directory and enable it in your
./config/application.config.php
file.
Provided Classes and Interfaces
GtnPersistBase\Model\EntityInterface
- Interface defining an entity.GtnPersistBase\Model\AggregateRootInterface
- Interface defining an aggregate root.GtnPersistBase\Model\RepositoryInterface
- Interface defining the minimum set of methods a repository must implements.GtnPersistBase\Infrastructure\Memory\Repository
- In memory Repository implementation (useful in unit tests context).