oci8
Wrapper for PHP oci8 / Oracle functions, (*1)
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., (*2)
this package is based on https://github.com/jpina/oci8
, (*3)
Oci8 converts the warnings thrown by the oci_*
function into Oci8Exceptions
for better error handling., (*4)
Install
Via Composer, (*5)
``` bash
$ composer require vagovszky/oci8, (*6)
## Usage
Connect to a database, execute a query and fetch a row:
``` php
$db = new Oci8\Connection('username', 'password', 'connstring');
$statement = $db->parse('SELECT * FROM dual');
$statement->execute();
$row = $statement->fetchAssoc();