1. Go to this page and download the library: Download asaladino/oracle_datasource library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
asaladino / oracle_datasource example snippets
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' => ''
);
}
App::uses('AppModel', 'Model');
class DemoState extends AppModel {
public $primaryKey = 'st';
public $displayField = 'state_name';
public $useDbConfig = 'oracle';
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.