1. Go to this page and download the library: Download snelg/cakephp-3-oracle 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/ */
snelg / cakephp-3-oracle example snippets
// in config/app.php
'Datasources' => [
// other datasources
'my_oracle_db' => [
'className' => 'Cake\Database\Connection',
'driver' => 'Cake\Oracle\Driver\Oracle',
/* 'host' => '', //Usually unused for Oracle connections */
'username' => 'you know what goes here',
'password' => 'and here',
'database' => 'TNS entry name or full conn string, e.g. (DESCRIPTION=(ADDRESS_LIST=( [...] )))',
'schema' => 'SCHEMA_NAME', //The schema that owns the tables, not necessarily your login schema
],
]
class UsersTable extends Table
{
public function initialize(array $config)
{
$this->table('some_other_schema.users');
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.