Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 734 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 734 Bytes

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();