rubyan/simple-oracle

Simple class to connect to a Oracle database using OCI8

dev-master 2016-07-07 15:15 UTC

This package is auto-updated.

Last update: 2024-09-18 23:01:23 UTC


README

This is a very lightweight solution to connect to an Oracle Database using OCI8.

Installing via composer:

composer require rubyan/simple-oracle:dev-master

Example usage in CakePHP 3

    $config['host'] = 'localhost';
    $config['username'] = 'demo';
    $config['password'] = 'demo';
    $config['port'] = 1521;
    $config['instance_name'] = 'xe';
    $config['charset'] = 'UTF8';

    $db = new \Rubyan\Oracle\Oracle($config);   
    $sql = 'SELECT * FROM HR.JOBS';
    $db->execute($sql);