PHPackages                             mahdiazadbar/laravel-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. [Database &amp; ORM](/categories/database)
4. /
5. mahdiazadbar/laravel-pdo-via-oci8

ActiveLibrary[Database &amp; ORM](/categories/database)

mahdiazadbar/laravel-pdo-via-oci8
=================================

PDO userspace driver proxying calls to PHP OCI8 driver

v3.1(3y ago)01.3k1MITPHPPHP ^8.0

Since Jan 24Pushed 3y agoCompare

[ Source](https://github.com/Mahdiazadbar/pdo-via-oci8)[ Packagist](https://packagist.org/packages/mahdiazadbar/laravel-pdo-via-oci8)[ Fund](https://www.paypal.me/yajra)[ GitHub Sponsors](https://github.com/yajra)[ RSS](/packages/mahdiazadbar-laravel-pdo-via-oci8/feed)WikiDiscussions 3.0 Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (3)Used By (1)

Oracle PDO Userspace Driver for OCI8
====================================

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

PDO via Oci8
------------

[](#pdo-via-oci8)

[![Build Status](https://camo.githubusercontent.com/d5755cb87a0340e0affa42e3e95d73cc8e14cf841c14e3ce85bce7be5383aa48/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f79616a72612f70646f2d7669612d6f6369382e737667)](https://travis-ci.org/yajra/pdo-via-oci8)[![Latest Stable Version](https://camo.githubusercontent.com/87cf86d83052cd67aac14c5018c70a369673892f112783ee0e3ff1c4587413a4/68747470733a2f2f706f7365722e707567782e6f72672f79616a72612f6c61726176656c2d70646f2d7669612d6f6369382f762f737461626c65)](https://packagist.org/packages/yajra/laravel-pdo-via-oci8)[![Total Downloads](https://camo.githubusercontent.com/b2bb9996c1a8b127d03c03214be5de9d41b8b9e14901299a99fa3b5f5e6196eb/68747470733a2f2f706f7365722e707567782e6f72672f79616a72612f6c61726176656c2d70646f2d7669612d6f6369382f646f776e6c6f616473)](https://packagist.org/packages/yajra/laravel-pdo-via-oci8)[![Latest Unstable Version](https://camo.githubusercontent.com/fd9ea05b70b5a05765a1aff42806ff444982554301c75238b415fc552be7c1ab/68747470733a2f2f706f7365722e707567782e6f72672f79616a72612f6c61726176656c2d70646f2d7669612d6f6369382f762f756e737461626c65)](https://packagist.org/packages/yajra/laravel-pdo-via-oci8)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE.md)

The [yajra/pdo-via-oci8](https://github.com/yajra/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.

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

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

Installation
------------

[](#installation)

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

```
{
    "require": {
        "mahdiazadbar/laravel-pdo-via-oci8": "2.*"
    }
}
```

And then run `composer update`

PHP 8 Support
-------------

[](#php-8-support)

When using PHP 8, please use version 3: `"mahdiazadbar/laravel-pdo-via-oci8": "3.*"`.

Testing
-------

[](#testing)

There is a test suite (using `PHPUnit` with a version bigger than 6.x) on the `test` directory. If you want to test (you must test your code!), create a table called `people` with two columns:

1. `name` as `varchar2(50)`
2. `email` as `varchar2(30)`

And some environment variables:

1. `OCI_USER` with the database user name
2. `OCI_PWD` with the database password
3. `OCI_STR` with the database connection string

And then go to the `test` dir and run `PHPUnit` like:

```
phpunit --colors .

```

Example to get it up and running on docker DB container-registry.oracle.com/database/enterprise:12.2.0.1

```
create pluggable database testpdb admin user oracle identified by system file_name_convert = ('/pdbseed/', '/testpdb01/');
alter pluggable database testpdb open;

ALTER SESSION SET CONTAINER=testpdb;

CREATE TABLE person (name NVARCHAR2(50), email NVARCHAR2(30));

```

Buy me a coffee
---------------

[](#buy-me-a-coffee)

[![paypal](https://camo.githubusercontent.com/e1ff554a09e8e92bef25abc553ff05b88f45afd695877cf12f3a46558ef65b2e/68747470733a2f2f7777772e70617970616c6f626a656374732e636f6d2f656e5f55532f692f62746e2f62746e5f646f6e61746543435f4c472e676966)](https://www.paypal.me/yajra)[![Become a Patron](https://camo.githubusercontent.com/bc101c1d13e9c8f6ab92026eb037a37dc71f582e7c14f2f8ddce7503a3f05a64/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f70617472656f6e5f7075626c69635f6173736574732f746f6f6c626f782f70617472656f6e2e706e67)](https://www.patreon.com/bePatron?u=4521203)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Credits
-------

[](#credits)

- [crazycodr/pdo-via-oci8](https://github.com/crazycodr/pdo-via-oci8)
- [ramsey/pdo\_oci8](https://github.com/ramsey/pdo_oci8)
- To all contributors of this project

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1257d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b3f0c55f3eaa7042b2bb80799ae233fd985a4311e9b8e27ed53ceb8f63551ee2?d=identicon)[Mahdiazadbar](/maintainers/Mahdiazadbar)

---

Top Contributors

[![yajra](https://avatars.githubusercontent.com/u/2687997?v=4)](https://github.com/yajra "yajra (211 commits)")[![istaveren](https://avatars.githubusercontent.com/u/205372?v=4)](https://github.com/istaveren "istaveren (15 commits)")[![danielrona](https://avatars.githubusercontent.com/u/1699775?v=4)](https://github.com/danielrona "danielrona (8 commits)")[![alfmel](https://avatars.githubusercontent.com/u/4806187?v=4)](https://github.com/alfmel "alfmel (7 commits)")[![wernerm](https://avatars.githubusercontent.com/u/411270?v=4)](https://github.com/wernerm "wernerm (5 commits)")[![forgandenny](https://avatars.githubusercontent.com/u/2554234?v=4)](https://github.com/forgandenny "forgandenny (4 commits)")[![jidago](https://avatars.githubusercontent.com/u/56063120?v=4)](https://github.com/jidago "jidago (4 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (4 commits)")[![ramsey](https://avatars.githubusercontent.com/u/42941?v=4)](https://github.com/ramsey "ramsey (3 commits)")[![Mahdiazadbar](https://avatars.githubusercontent.com/u/11613106?v=4)](https://github.com/Mahdiazadbar "Mahdiazadbar (3 commits)")[![AdamWillden](https://avatars.githubusercontent.com/u/4629144?v=4)](https://github.com/AdamWillden "AdamWillden (2 commits)")[![snelg](https://avatars.githubusercontent.com/u/5741887?v=4)](https://github.com/snelg "snelg (2 commits)")[![eisberg](https://avatars.githubusercontent.com/u/9015003?v=4)](https://github.com/eisberg "eisberg (2 commits)")[![fhferreira](https://avatars.githubusercontent.com/u/140686?v=4)](https://github.com/fhferreira "fhferreira (2 commits)")[![jidagob](https://avatars.githubusercontent.com/u/88225209?v=4)](https://github.com/jidagob "jidagob (2 commits)")[![Blizzke](https://avatars.githubusercontent.com/u/231572?v=4)](https://github.com/Blizzke "Blizzke (2 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (2 commits)")[![dkochnov](https://avatars.githubusercontent.com/u/18139959?v=4)](https://github.com/dkochnov "dkochnov (2 commits)")[![fairchilly](https://avatars.githubusercontent.com/u/1530527?v=4)](https://github.com/fairchilly "fairchilly (2 commits)")[![zulrang](https://avatars.githubusercontent.com/u/1043189?v=4)](https://github.com/zulrang "zulrang (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mahdiazadbar-laravel-pdo-via-oci8/health.svg)

```
[![Health](https://phpackages.com/badges/mahdiazadbar-laravel-pdo-via-oci8/health.svg)](https://phpackages.com/packages/mahdiazadbar-laravel-pdo-via-oci8)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
