Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/taq/pdooci

Wrapping on PHP OCI functions to simulate a PDO object, since PDO support for OCI is very confuse and slow.
https://github.com/taq/pdooci

oci pdo php

Last synced: 1 day ago
JSON representation

Wrapping on PHP OCI functions to simulate a PDO object, since PDO support for OCI is very confuse and slow.

Awesome Lists containing this project

README

        

# PDOCI

| :warning: **WARNING** This software is [abandonware](https://en.wikipedia.org/wiki/Abandonware). As the creator and maintainer, I don't even use PHP or Oracle _for years_, so, I can't support it anymore. It should work ok for PHP untill version 7, but seems that with 8.1 there are some alerts. Feel free to fork it and keep it going. |
| --- |

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:

1. If you install `pdo_oci` with `pecl` you'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.

2. If you follow the official docs, you'll need to compile PHP and still get an
*experimental* extension (http://www.php.net/manual/ref.pdo-oci.php). Come on.
We can't (yeah, we know how to do it!) compile PHP on every server we need
and just for an experimental feature?

That's why I made `PDOOCI`.

## Installation

First install the Oracle drivers (I like the instant client versions) and the
`oci8` package (with `pecl`, this one seems to be updated often).

### With Composer

```
$ composer require taq/pdooci
```

```json
{
"require": {
"taq/pdooci": "^1.0"
}
}
```

```php