PHPackages                             apaoww/yii2-oci8 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. apaoww/yii2-oci8

ActiveYii2-extension[Database &amp; ORM](/categories/database)

apaoww/yii2-oci8
================

Oci8 PDO userspace driver for Yii2

2.0.4(2y ago)1117.9k↓45%12BSD-3-ClausePHP

Since Nov 4Pushed 2y ago2 watchersCompare

[ Source](https://github.com/apaoww/yii2-oci8)[ Packagist](https://packagist.org/packages/apaoww/yii2-oci8)[ RSS](/packages/apaoww-yii2-oci8/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

Yii2 Connect Oracle via OCI8
============================

[](#yii2-connect-oracle-via-oci8)

This library is based on [yajra/pdo-via-oci8](https://github.com/yajra/pdo-via-oci8) Version 3 that support PHP 8.2.

Installation
------------

[](#installation)

### Install With Composer

[](#install-with-composer)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

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

```

or add

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

```

to the require section of your `composer.json` file.

### OR Install From Archive

[](#or-install-from-archive)

You can also install from archive. Add aliase on config file to point alias to the folder

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

```

Usage
-----

[](#usage)

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

```
return [
	'components' => [
		....
		'db' => [
                    'class' => 'apaoww\oci8\Oci8DbConnection',
                    'dsn' => 'oci:dbname=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521))(CONNECT_DATA=(SID=xe)));charset=AL32UTF8;',
                    'username' => 'yourdatabaseschemaname',
                    'password' => 'databasepassword',
		    'enableSchemaCache' => true, //increase performance when retrieved table meta data
            	    'schemaCacheDuration' => 3600,
            	    'schemaCache' => 'cache',
		    'on afterOpen' => function($event) {

                /* A session configuration example */
                $q = execute();
            },
                    // To convert column name to lower case
                    'schemaMap' => ['oci' => 'apaoww\oci8\ESchemaOci',],
    			'attributes' => [
	//                PDO::ATTR_STRINGIFY_FETCHES => true,
			        PDO::ATTR_CASE => PDO::CASE_LOWER,
			    ],
	                ],
	],
];

```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 89.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~168 days

Total

5

Last Release

984d ago

Major Versions

1.0.0 → 2.0.02022-09-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/a775977f4705909feb9c4b573e420175096166c9084afb9084ac661f2e29dc16?d=identicon)[apaoww](/maintainers/apaoww)

---

Top Contributors

[![apaoww](https://avatars.githubusercontent.com/u/4974699?v=4)](https://github.com/apaoww "apaoww (49 commits)")[![alvinux](https://avatars.githubusercontent.com/u/5440699?v=4)](https://github.com/alvinux "alvinux (6 commits)")

---

Tags

oci8yii

### Embed Badge

![Health badge](/badges/apaoww-yii2-oci8/health.svg)

```
[![Health](https://phpackages.com/badges/apaoww-yii2-oci8/health.svg)](https://phpackages.com/packages/apaoww-yii2-oci8)
```

###  Alternatives

[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k578.4M5.6k](/packages/doctrine-dbal)[sjaakp/yii2-sortable-behavior

Sort ActiveRecords and related records in Yii2.

36144.7k](/packages/sjaakp-yii2-sortable-behavior)[sjaakp/yii2-spatial

Yii2 ActiveRecord supporting MySQL spatial data

1873.8k1](/packages/sjaakp-yii2-spatial)[nanson/yii2-postgis

Yii2-extension to work with postgis data

1851.6k](/packages/nanson-yii2-postgis)[casbin/yii-permission

Use Casbin in Yii2 PHP Framework, Casbin is a powerful and efficient open-source access control library.

468.0k](/packages/casbin-yii-permission)[mg-code/yii2-helpers

A collection of useful helper classes for Yii framework 2.0

2022.5k5](/packages/mg-code-yii2-helpers)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
