2017 © Pedro Peláez
 

yii2-extension yii2-oci8

Oci8 Driver for Yii2

image

bogdik/yii2-oci8

Oci8 Driver for Yii2

  • Tuesday, May 15, 2018
  • by bogdik
  • Repository
  • 1 Watchers
  • 0 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 10 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Yii2 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 bogdik/yii2-oci8 "dev-master"

or add, (*3)

"bogdik/yii2-oci8": "dev-master"

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

OR Install From Archive

You can also install from archive. Add aliase on config file to point alias to the folder, (*5)

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

Usage

Once the extension is installed, simply modify your application configuration on main-local.php as follows :, (*6)

return [    
    'components' => [
        ....
        'db' => [
                    'class' => 'bogdik\oci8\Oci8DbConnection',
                    'dsn' => 'oci8:dbname=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521))(CONNECT_DATA=(SID=xe)));charset=AL32UTF8;',
                    'username' => 'yourdatabaseschemaname',
                    'password' => 'databasepassword',
                    'attributes' => []
                ],
    ],
];

Custom User's Table Migration

You may want to create user's table using migration command. Instead of using yii default migrate (yii migrate), specify the custom migrationPath to point to custom user's table migration to avoid oracle error ('ORA-00907: missing right parenthesis). Note: you have to manually add user's table sequence eg. user_seq on you oracle db and primary key trigger using sql developer or toad., (*7)

yii migrate --migrationPath=@bogdik/oci8/migrations

You can refer the sample application using yii2 advance template here bogdik/yii2-php7-oci8 https://github.com/bogdik/yii2-php7-oci8, (*8)

The Versions

15/05 2018

dev-master

9999999-dev

Oci8 Driver for Yii2

  Sources   Download

BSD-3-Clause

The Requires

 

by Apa Oww

yii oci8

15/05 2018

1.2.5

1.2.5.0

Oci8 Driver for Yii2

  Sources   Download

BSD-3-Clause

The Requires

 

by Apa Oww

yii oci8

02/04 2018

1.2.3

1.2.3.0

Oci8 Driver for Yii2

  Sources   Download

BSD-3-Clause

The Requires

 

by Apa Oww

yii oci8

11/06 2017

1.0.0

1.0.0.0

Oci8 Driver for Yii2

  Sources   Download

BSD-3-Clause

The Requires

 

by Apa Oww

yii oci8