PHPackages                             asaladino/oracle\_datasource - 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. asaladino/oracle\_datasource

ActiveCakephp-plugin[Database &amp; ORM](/categories/database)

asaladino/oracle\_datasource
============================

CakePHP Oracle Datasource

v1.0(11y ago)225MITPHPPHP &gt;=5.4.0

Since Jan 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/asaladino/cakephp_oracle_datasource)[ Packagist](https://packagist.org/packages/asaladino/oracle_datasource)[ Docs](http://codingsimply.com/projects/cakephp-oracle-oci8-datasource)[ RSS](/packages/asaladino-oracle-datasource/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Connect to an Oracle database using the OCI\* PHP extension.

Requirements
------------

[](#requirements)

The master branch has the following requirements:

- CakePHP 2.2.0 or greater.
- PHP 5.4.0 or greater.

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

[](#installation)

*\[Using [Composer](http://getcomposer.org/)\]*

Add the plugin to your project's `composer.json`:

```
{
  "require": {
    "asaladino/oracle_datasource": "0.8.*"
  }
}
```

Because this plugin has the type `cakephp-plugin` set in it's own `composer.json`, composer knows to install it inside your `/Plugin` directory, rather than in the usual vendors file. It is recommended that you add `/Plugin/OracleDatasource` to your .gitignore file. (Why? [read this](http://getcomposer.org/doc/faqs/should-i-commit-the-dependencies-in-my-vendor-directory.md).)

*\[Manual\]*

- Download the [OracleDatasource archive](https://github.com/asaladino/cakephp_oracle_datasource/zipball/master).
- Unzip that download.
- Rename the resulting folder to `OracleDatasource`
- Then copy this folder into `app/Plugin/`

*\[Enable\]*

Add `CakePlugin::loadAll();` to `bootstrap.php` then implement in database.php and a model.

**\[database.php\]**

```
class DATABASE_CONFIG {
    public $oracle = array(
        'datasource' => 'OracleDatasource.Oci',
        'persistent' => false,
        'host' => '127.0.0.1',
        'port' => '1521',
        'login' => 'user',
        'password' => 'oracle',
        'schema' => 'USER_SCHEMA',
        'sid' => 'orcl', // or service name
        'prefix' => ''
    );
}
```

**\[Your Model\]**

```
App::uses('AppModel', 'Model');

class DemoState extends AppModel {
    public $primaryKey = 'st';
    public $displayField = 'state_name';
    public $useDbConfig = 'oracle';
}
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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

4127d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/86e6d430c909c041cad3fd21331f9ca4930e71ea8fa0102e7e85ffd768f16d4f?d=identicon)[asaladino](/maintainers/asaladino)

---

Top Contributors

[![asaladino](https://avatars.githubusercontent.com/u/1087585?v=4)](https://github.com/asaladino "asaladino (9 commits)")

---

Tags

oracleoci8cakephpdatasourceoci

### Embed Badge

![Health badge](/badges/asaladino-oracle-datasource/health.svg)

```
[![Health](https://phpackages.com/badges/asaladino-oracle-datasource/health.svg)](https://phpackages.com/packages/asaladino-oracle-datasource)
```

###  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)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8703.0M17](/packages/yajra-laravel-oci8)[taq/pdooci

Replacement for the PHP PDO OCI class

67144.0k1](/packages/taq-pdooci)[jpina/oci8

Oracle database wrapper for PHP oci8 functions

1713.9k](/packages/jpina-oci8)[cakedc/cakephp-oracle-driver

CakePHP 3 Driver for Oracle Database

4226.4k](/packages/cakedc-cakephp-oracle-driver)[jonas-elias/hyperf-oracle

A oracle handler for hyperf/database.

102.0k](/packages/jonas-elias-hyperf-oracle)

PHPackages © 2026

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