Skip to content

vagovszky/oci8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oci8

Wrapper for PHP oci8 / Oracle functions

Oci8 is a wrapper for the PHP Oracle OCI functions that allows interaction with Oracle databases by using objects in place of the regular oci_* functions.

this package is based on https://github.com/jpina/oci8

Oci8 converts the warnings thrown by the oci_* function into Oci8Exceptions for better error handling.

Install

Via Composer

$ composer require vagovszky/oci8

Usage

Connect to a database, execute a query and fetch a row:

$db = new Oci8\Connection('username', 'password', 'connstring');
$statement = $db->parse('SELECT * FROM dual');
$statement->execute();
$row = $statement->fetchAssoc();