2017 © Pedro Peláez
 

yii2-extension yii2-dbmanager-oci8

Auth Dbmanager for Yii2 for Oracle db Customize for Oci8 driver

image

apaoww/yii2-dbmanager-oci8

Auth Dbmanager for Yii2 for Oracle db Customize for Oci8 driver

  • Sunday, November 5, 2017
  • by apaoww
  • Repository
  • 1 Watchers
  • 0 Stars
  • 155 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

Yii2 authManager dbmanager for Oracle Oci8 Driver

Installation

Install With Composer

The preferred way to install this extension is through composer., (*1)

Either run, (*2)

php composer.phar require apaoww/yii2-dbmanager-oci8 "dev-master"

or add, (*3)

"apaoww/yii2-dbmanager-oci8": "dev-master"

to the require section of your composer.json file., (*4)

Install From Archive

Download source at https://github.com/apaoww/yii2-dbmanager-oci8, (*5)

return [
    ...
    'aliases' => [
        '@apaoww/DbManagerOci8' => 'path/to/your/extracted',
        ...
    ]
];

Usage

Once the extension is installed, simply modify your application configuration as follows :, (*6)

return [    
    'components' => [
        ....
        'authManager' => [
                    'class' => 'apaoww\DbManagerOci8\DbManager', // or use 'yii\rbac\DbManager'
            'itemTable' => 'SCHEMANAME.AUTH_ITEM',
                    'assignmentTable' => 'SCHEMANAME.AUTH_ASSIGNMENT',
                    'itemChildTable' => 'SCHEMANAME.AUTH_ITEM_CHILD',
                    'ruleTable' => 'SCHEMANAME.AUTH_RULE',
                ],
];

Custom Auth's Table Migration

You may want to create auth's table using migration command. Instead of using yii default migrate (yii migrate), specify the custom migrationPath to point to custom auth's table migration, all column are uppercase., (*7)

php yii migrate --migrationPath=@apaoww/DbManagerOci8/migrations

The Versions

05/11 2017

dev-master

9999999-dev

Auth Dbmanager for Yii2 for Oracle db Customize for Oci8 driver

  Sources   Download

BSD-3-Clause

The Requires

 

by Apa Oww

auth yii admin