|Last Updated||Ratings||Unique User Downloads||Download Rankings|
|2016-02-25 (2 months ago)||Not enough user ratings||Total: 443 This week: 2||All time: 5,862 This week: 655|
|pdo-oci 1.0.10||GNU General Publi...||5||PHP 5, Databases|
This class can access Oracle databases using a PDO class wrapper.
What is the best PHP oracle oci8 class?
Wrapping on PHP OCI functions to simulate a PDO object, using just pure PHP and the oci_* functions.
Let's face it. Installing PHP, PDO, Oracle drivers and PDO OCI is not a pleasant task. Is more pleasant to insert bamboo sticks under your fingernails than make all the voodoo needed to accomplish that task. And there are two big problems with that:
peclyou'll get a version from 2005 (http://pecl.php.net/package/PDO_OCI). Even Christian Bale is now far from the things from 2005, and wow, he had a cool suit and a very nice car. And all came in black.
That's why I made
Just install the Oracle drivers (I like the instant client versions) and the
oci8 package (with
pecl, this one seems to be updated often). Then require
pdooci.php file and change some existing code like
$pdo = new PDO("oci:dbname=mydatabase;charset=utf8", "user", "password");
require_once "pdooci.php"; $pdo = new PDOOCI\PDO("mydatabase", "user", "password");
Yeah, the rest should work exactly the same as if you were using a PDO object. :-)
There is a test suite (using
PHPUnit) on the
test directory. If you want to
test (you must test your code!), create a table called
people with two
And some environment variables:
PDOOCI_userwith the database user name
PDOOCI_pwdwith the database password
PDOOCI_strwith the database connection string
And then go to the
test dir and run
phpunit --colors .
|Version Control||Unique User Downloads||Download Rankings|