manuakasam / sam-user
A simple useable module to quickly glue together ZfcUser, BjyAuthorize and Doctrine 2
Installs: 2 361
Dependents: 1
Suggesters: 0
Security: 0
Stars: 18
Watchers: 3
Forks: 10
Open Issues: 0
Requires
- php: >=5.3.3
- bjyoungblood/bjy-authorize: >=1.2
- doctrine/doctrine-orm-module: >=0.7
- zf-commons/zfc-user: >=0.1
- zf-commons/zfc-user-doctrine-orm: >=0.1
This package is not auto-updated.
Last update: 2024-12-18 12:22:16 UTC
README
What is SamUser?
SamUser is a Module that acts like glue between ZfcUser, ZfcUserDoctrineORM and BjyAuthorize. Configuration for those three Modules - at least in my cases - are almost identical at all times. Since I am too lazy to copy paste stuff I created this Module.
What exactly does SamUser?
SamUser provides a very common Default-Configuration for the abovementioned Modules. It also provides the required Entities.
What's the use again?
Nothing but helping out lazy people ;) You may want to check out my blogpost where i describe in detail how and why this module has been created
http://samminds.com/2013/03/zfcuser-bjyauthorize-and-doctrine-working-together/
Installation
Installation via composer is supported, simply add the following line to your composer.json
"require" : {
"manuakasam/sam-user": "dev-master"
}
All that matters then is to load SamUser
after ZfcUser
and BjyAuthorize
. An example application configuration could look like the following:
'modules' => array(
'Application',
'DoctrineModule',
'DoctrineORMModule',
'ZfcBase',
'ZfcUser',
'ZfcUserDoctrineORM',
'BjyAuthorize',
'SamUser' // Important to load after all ZfcUser, BjyAuthorize and their required modules!
)
Configuration
This Module doesn't require any special configuration. All that's needed is to set up a Connection for Doctrine. For this you can use the distribuntionable located inside SamUser/config
If you need to modify any behavior of the glued Modules, then simply use the DEFAULT Configuration Options from ZfcUser or BjyAuthorize ;)
Dependencies
This Module heavily depends on the following Modules and makes no sense without them:
- ZfcUser
- DoctrineORMModule
- ZfcUserDoctrineORM
- BjyAuthorize