2017 © Pedro Peláez
 

library zf2-rbac-user-doctrine-orm

A module that joins zfc-rbac & zfc-user in a pre-configured doctrine ORM based module

image

dimasdario/zf2-rbac-user-doctrine-orm

A module that joins zfc-rbac & zfc-user in a pre-configured doctrine ORM based module

  • Thursday, March 26, 2015
  • by dimasdario
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 12 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

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., (*1)

Requirements & their dependencies

Installation

Installation of RbacUserDoctrineOrm uses composer. For composer documentation, please refer to getcomposer.org., (*2)

Installation steps

  1. cd my/project/directory
  2. create a composer.json file with following contents:, (*3)

    json { "require": { "esserj/rbac-user-doctrine-orm": "dev-master" } }, (*4)

  3. install composer via curl -s http://getcomposer.org/installer | php (on windows, download http://getcomposer.org/installer and execute it with PHP)
  4. run php composer.phar install
  5. open my/project/directory/configs/application.config.php and add the following to your modules key:, (*5)

    php 'DoctrineModule', 'DoctrineORMModule', 'ZfcBase', 'ZfcRbac', 'ZfcUser', 'ZfcUserDoctrineORM', 'RbacUserDoctrineOrm',, (*6)

  6. 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
  7. setup doctrine database parameters by adding the following to your my/project/config/autoload/local.php:, (*7)

    php 'doctrine' => array( 'connection' => array( // default connection name 'orm_default' => array( 'driverClass' => 'Doctrine\DBAL\Driver\PDOMySql\Driver', 'params' => array( 'host' => 'localhost', 'port' => '3306', 'user' => '', //put your user here 'password' => '', //put your pass here 'dbname' => '', //put your database here ) ) ) ), (*8)

  8. 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:, (*9)

  • Generic Providers:
    • Permissions & Roles (RbacUserDoctrineOrm\Provider\AdjacencyList\Role): uses Doctrine ORM to inject Role entities that have permission entities compatible with the ZfcRbac RoleInterface

The Versions

26/03 2015

dev-master

9999999-dev

A module that joins zfc-rbac & zfc-user in a pre-configured doctrine ORM based module

  Sources   Download

The Requires

 

18/11 2013

dev-rbac-v1.x

dev-rbac-v1.x http://www.github.com/esserj/RbacUserDoctrineOrm/

A module that joins zfc-rbac & zfc-user in a pre-configured doctrine ORM based module

  Sources   Download

The Requires

 

by Jan Esser

orm user zf2 doctrine module rbac

14/11 2013

0.1.0

0.1.0.0 http://www.github.com/esserj/RbacUserDoctrineOrm/

A module that joins zfc-rbac & zfc-user in a pre-configured doctrine ORM based module

  Sources   Download

The Requires

 

by Jan Esser

orm user zf2 doctrine module rbac