Download the PHP package esserj/rbac-user-doctrine-orm without Composer
On this page you can find all versions of the php package esserj/rbac-user-doctrine-orm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package rbac-user-doctrine-orm
ORM based RbacUser module for ZF 2
RbacUserDoctrineOrm offers a module that combines ZfcRbac & ZfcUser together with the Doctrine Orm module from ZF2 so that you can focus on getting started.
Requirements & their dependencies
- PHP 5.3 or higher
- Zend Framework 2
- ZfcRbac
- ZfcUserDoctrineOrm
Installation
Installation of RbacUserDoctrineOrm uses composer. For composer documentation, please refer to getcomposer.org.
Installation steps
cd my/project/directory
-
create a
composer.json
file with following contents: - install composer via
curl -s http://getcomposer.org/installer | php
(on windows, download http://getcomposer.org/installer and execute it with PHP) - run
php composer.phar install
-
open
my/project/directory/configs/application.config.php
and add the following to yourmodules
key: - run the schema-full.sql file found in
my/project/directory/vendor/esserj/rbac-user-doctrine-orm/data
or alternatively run the schema.sql if you already installed ZfcUser or ZfcRbac schemas -
setup doctrine database parameters by adding the following to your
my/project/config/autoload/local.php
: - see the ZfcUser & ZfcRbac pages for controller/view plugins to get started
Providers
Providers are listeners that hook into various events to provide roles and permissions. ZfcRbac ships with several providers that you can use out of the box, but none support ORM, this is where we come in:
- Generic Providers:
- Permissions & Roles (RbacUserDoctrineOrm\Provider\AdjacencyList\Role): uses Doctrine ORM to inject Role entities that have permission entities compatible with the ZfcRbac RoleInterface
All versions of rbac-user-doctrine-orm with dependencies
zendframework/zendframework Version >2.2.0rc1
zf-commons/zfc-user Version dev-master
zf-commons/zfc-rbac Version dev-master
zf-commons/zfc-user-doctrine-orm Version dev-master
doctrine/doctrine-orm-module Version 0.7.*