PHPackages                             alfmel/pdo-via-oci8 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. alfmel/pdo-via-oci8

ActiveLibrary

alfmel/pdo-via-oci8
===================

Userspace PDO driver for Oracle via the PHP OCI8 driver

0.2.15(11y ago)374MITPHP

Since Jan 15Pushed 11y agoCompare

[ Source](https://github.com/alfmel/pdo-via-oci8)[ Packagist](https://packagist.org/packages/alfmel/pdo-via-oci8)[ RSS](/packages/alfmel-pdo-via-oci8/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (21)Used By (0)

PDO Userspace Driver for Oracle (oci8)
======================================

[](#pdo-userspace-driver-for-oracle-oci8)

\###PDO via Oci8

The [alfmel/pdo-via-oci8](https://github.com/alfmel/pdo-via-oci8) package is a simple userspace driver for PDO that uses the tried and tested [OCI8](http://php.net/oci8) functions instead of using the still experimental and not all that functional [PDO\_OCI](http://www.php.net/manual/en/ref.pdo-oci.php) library.

This fork from [yajra/laravel-pdo-via-oci8](https://github.com/yajra/laravel-pdo-via-oci8) restores full DSN support (previously removed to fit better within Laravel) making the project fully portable to any installation. This fork also includes improved class names and error handling for strict error reporting configurations.

**Please report any bugs you may find.**

- [Installation](#installation)
- [Usage](#usage)
- [Credits](#credits)

\###Installation

Add `alfmel/pdo-via-oci8` as a requirement to composer.json:

```
{
    "require": {
        "alfmel/pdo-via-oci8": "*"
    }
}
```

And then run `composer update`

***Note:***lastInsertId function returns the current value of the sequence related to the table where record is inserted. The sequence name should follow this format `{$table}.'_'.{$column}.'_seq'` for it to work properly.

\###Usage

Using the userspace PDO driver is easy. Simply instantiate the alfmel\\OCI8\\PDO class instead of the PDO class in PHP. Then use the PDO object as you would any other PDO object:

```
