mdjaman/mdjaman-common
Module that provides common functionality and library code for ZF2 & Doctrine applications
Requires
- php: ^5.6 || ^7.0
- zendframework/zend-modulemanager: 2.*
- zendframework/zend-servicemanager: ^3.0
- zendframework/zend-form: 2.*
- zendframework/zend-inputfilter: 2.*
- zendframework/zend-authentication: 2.*
- zendframework/zend-eventmanager: ^3.0
- zendframework/zend-stdlib: ^3.0
- zendframework/zend-log: 2.*
- doctrine/doctrine-module: 1.2.*
- mdjaman/jms-serializer-module: 2.*
- gedmo/doctrine-extensions: dev-master
Requires (Dev)
- phpunit/phpunit: 5.7.*
Suggests
- doctrine/doctrine-orm-module: If you want to use Doctrine ORM
- doctrine/doctrine-mongo-odm-module: If you want to use Doctrine ODM
- imagine/imagine: If you need image manipulation after uploading image
- ruflin/elastica: If you want to use elasticsearch as search server
- predis/predis: If you want to use redis
README
Introduction
Module that provides common functionality and library code for ZF2/ZF3 applications integrated with doctrine ORM or ODM.
Installation
Using Composer (recommended and only way)
Mdjaman\MdjamanCommon is available through composer. Add "mdjaman/mdjaman-common" to your composer.json list.
Choose most recent v2 tag for zf2
"mdjaman/mdjaman-common": "2.*"
Choose most recent v3 tag for zf3
"mdjaman/mdjaman-common": "3.*"
Enable the module in your config/application.config.php file. Add an entry MdjamanCommon
to the list of enabled
modules.
Usage
To make this MdjamanCommon deal with Gedmo\Blameable extension for you, make sure your AuthenticationService implements
Zend\Authenticate\AuthenticationServiceInterface and add this alias mdjaman_auth_service in a aliases
section under service_manager
in your module.config.php
'service_manager' => [
'aliases' => [
'mdjaman_auth_service' => <MyGreatAuthenticationService>,
],
...
]
],
More to come!