lordkino / yii2-oci8pdo
Translate pdo command to oci8
1.0.1
2018-05-24 14:52 UTC
Requires
This package is not auto-updated.
Last update: 2026-03-01 13:47:00 UTC
README
Translate pdo command to oci8
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist lordkino/yii2-oci8pdo "*"
or add
"lordkino/yii2-oci8pdo": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
'db' => [ 'class' => 'lordkino\oci8pdo\Connection', 'dsn' => 'oci:dbname=//dbhost:1521/dbasename', 'username' => 'username', 'password' => 'password', 'charset' => 'utf8', 'attributes' => [ PDO::ATTR_STRINGIFY_FETCHES => true, ], ],```