PHPackages                             adipriyantobpn/yii2-db-oracle - 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. adipriyantobpn/yii2-db-oracle

ActiveLibrary[Database &amp; ORM](/categories/database)

adipriyantobpn/yii2-db-oracle
=============================

Base library and foundation components for Oracle Database

1.0(8y ago)029MITPHP

Since Sep 9Pushed 8y ago1 watchersCompare

[ Source](https://github.com/adipriyantobpn/yii2-db-oracle)[ Packagist](https://packagist.org/packages/adipriyantobpn/yii2-db-oracle)[ RSS](/packages/adipriyantobpn-yii2-db-oracle/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (3)Used By (0)

Oracle DB Base Component
========================

[](#oracle-db-base-component)

Base library and foundation components for Oracle Database

Why Using this Package?
-----------------------

[](#why-using-this-package)

Not all developer has access to Oracle DB as SYSDBA role.

In the default `yii\db\oci\Schema`, the database connection must specify user which has access to `DBA_USERS` view.

Please refer to `findSchemaNames()` function in : `https://github.com/yiisoft/yii2/blob/master/framework/db/oci/Schema.php`

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist adipriyantobpn/yii2-db-oracle "*"

```

or add

```
"adipriyantobpn/yii2-db-oracle": "*"

```

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

Usage
-----

[](#usage)

Once the extension is installed, you can access Oracle DB by configure db component in your `config.php` like this:

```
'components' => [
    'db' => [
        'class' => 'adipriyantobpn\db\oracle\Connection',
        'host' => 'localhost',
        'port' => 1522 // default: 1521
        'sid' => 'XE'
        'dateFormat' => 'DD-MON-RR' // default: 'YYYY-MM-DD HH24:MI:SS'
    ],
]
```

By using configuration format above, the connection class will be automatically build Oracle DSN by using this template:

```
$this->dsn = "oci:dbname=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST={$this->host})(PORT={$this->port})))(CONNECT_DATA=(SID={$this->sid})))"
```

But if you want to configure DSN with different format, you can omit host, port, and sid properties like this:

```
'components' => [
    'db' => [
        'class' => 'adipriyantobpn\db\oracle\Connection',
        'dsn' => 'oci:dbname=//localhost:1521/XE',
        'dateFormat' => 'DD-MON-RR' // default: 'YYYY-MM-DD HH24:MI:SS'
    ],
]
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

3168d ago

### Community

Maintainers

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

---

Top Contributors

[![adipriyantobpn](https://avatars.githubusercontent.com/u/4537439?v=4)](https://github.com/adipriyantobpn "adipriyantobpn (8 commits)")

---

Tags

libraryoracledbyii2

### Embed Badge

![Health badge](/badges/adipriyantobpn-yii2-db-oracle/health.svg)

```
[![Health](https://phpackages.com/badges/adipriyantobpn-yii2-db-oracle/health.svg)](https://phpackages.com/packages/adipriyantobpn-yii2-db-oracle)
```

###  Alternatives

[dmstr/yii2-db

Database extensions

19618.8k6](/packages/dmstr-yii2-db)[sjaakp/yii2-spatial

Yii2 ActiveRecord supporting MySQL spatial data

1873.8k1](/packages/sjaakp-yii2-spatial)[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)
