Oracle extension for the Yii framework

dev-main 2022-02-10 19:10 UTC

This package is auto-updated.

Last update: 2022-06-10 20:02:16 UTC


68747470733a2f2f796969736f66742e6769746875622e696f2f646f63732f696d616765732f7969695f6c6f676f2e737667 4430336

Yii Framework Oracle Extension

This extension provides the Oracle database support for the Yii framework.

For license information check the LICENSE-file.

Documentation is at docs/guide/README.md.

Latest Stable Version Total Downloads Build status Scrutinizer Code Quality Code Coverage Mutation testing badge static analysis type-coverage


The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist yiisoft/db-oracle

or add

"yiisoft/db-oracle": "~1.0.0"

to the require section of your composer.json.


Using yiisoft/composer-config-plugin automatically get the settings of Yiisoft\Cache\CacheInterface::class, LoggerInterface::class, and Profiler::class.


use Yiisoft\Db\Connection\ConnectionInterface;
use Yiisoft\Db\Oracle\Connection as OracleConnection;

return [
    ConnectionInterface::class => [
        'class' => OracleConnection::class,
        '__construct()' => [
            'dsn' => $params['yiisoft/db-oracle']['dsn'],
        'setUsername()' => [$params['yiisoft/db-oracle']['username']],
        'setPassword()' => [$params['yiisoft/db-oracle']['password']],


return [
    'yiisoft/db-oracle' => [
        'dsn' => 'oci:dbname=localhost/XE;charset=AL32UTF8;',
        'username' => 'system',
        'password' => 'oracle',

Unit testing

The package is tested with PHPUnit. To run tests:


Mutation testing

The package tests are checked with Infection mutation framework. To run it:


Static analysis

The code is statically analyzed with Psalm. To run static analysis:


Support the project

Open Collective

Follow updates

Official website Twitter Telegram Facebook Slack


The Yii Framework Oracle Extension is free software. It is released under the terms of the BSD License. Please see LICENSE for more information.

Maintained by Yii Software.