igor822/dbconnector

This library allow you to connect with Oracle database without concern about all the oci_* functions

0.0.1 2014-02-14 17:27 UTC

README

This library allow you to connect with Oracle database without concern about all the oci_* functions

Example

<?php
$_dataSource = array(
    'username' => 'hr',
    'password' => 'root',
    'service' => '//localhost/XE',
    'persistent' => true
);
$dbo_conn = DbConnector\DboSource::connect(array('connector' => 'oracle'));
$connector = $dbo_conn->getConnector()->setDataSource($_dataSource)->openConnection();

To fetch results of some query

// fetch() returns by default an array, if want, you can add a second parameter 'object' and return 
// an object ItemIterator()
$result = $dbo_conn->fetch('select * from dual');