2017 © Pedro Peláez
 

cakephp-plugin oracle_datasource

CakePHP Oracle Datasource

image

asaladino/oracle_datasource

CakePHP Oracle Datasource

  • Tuesday, January 20, 2015
  • by asaladino
  • Repository
  • 1 Watchers
  • 2 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Connect to an Oracle database using the OCI* PHP extension., (*1)

Requirements

The master branch has the following requirements:, (*2)

  • CakePHP 2.2.0 or greater.
  • PHP 5.4.0 or greater.

Installation

[Using Composer], (*3)

Add the plugin to your project's composer.json:, (*4)

{
  "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.), (*5)

[Manual], (*6)

  • Download the OracleDatasource archive.
  • Unzip that download.
  • Rename the resulting folder to OracleDatasource
  • Then copy this folder into app/Plugin/

[Enable], (*7)

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

[database.php], (*9)

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], (*10)

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

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

The Versions

20/01 2015

0.8.1.x-dev

0.8.1.9999999-dev http://codingsimply.com/projects/cakephp-oracle-oci8-datasource

CakePHP Oracle Datasource

  Sources   Download

MIT

The Requires

 

cakephp datasource oci8 oracle oci

20/01 2015

dev-master

9999999-dev http://codingsimply.com/projects/cakephp-oracle-oci8-datasource

CakePHP Oracle Datasource

  Sources   Download

MIT

The Requires

 

cakephp datasource oci8 oracle oci

20/01 2015

v1.0

1.0.0.0 http://codingsimply.com/projects/cakephp-oracle-oci8-datasource

CakePHP Oracle Datasource

  Sources   Download

MIT

The Requires

 

cakephp datasource oci8 oracle oci

08/01 2015

0.8.0.x-dev

0.8.0.9999999-dev https://github.com/asaladino/cakephp_oracle_datasource

CakePHP Oracle Datasource

  Sources   Download

MIT

The Requires

 

cakephp datasource oci8 oracle oci