PHPackages                             yajra/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. yajra/laravel-pdo-via-oci8

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

yajra/laravel-pdo-via-oci8
==========================

PDO userspace driver proxying calls to PHP OCI8 driver

v3.7.3(5mo ago)913.4M—8.8%66[15 issues](https://github.com/yajra/pdo-via-oci8/issues)[2 PRs](https://github.com/yajra/pdo-via-oci8/pulls)14MITPHPPHP ^8.0CI passing

Since Jan 15Pushed 5mo ago4 watchersCompare

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

READMEChangelog (10)Dependencies (1)Versions (92)Used By (14)

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

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

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

[](#pdo-via-oci8)

[![Continuous Integration](https://github.com/yajra/pdo-via-oci8/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/yajra/pdo-via-oci8/actions/workflows/continuous-integration.yml)[![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 `yajra/laravel-pdo-via-oci8` as a requirement to composer.json:

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

And then run `composer update`

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

[](#php-8-support)

When using PHP 8, please use version 3: `"yajra/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));

```

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

66

—

FairBetter than 99% of packages

Maintenance70

Regular maintenance activity

Popularity59

Moderate usage in the ecosystem

Community38

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 72.2% 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 ~48 days

Recently: every ~87 days

Total

91

Last Release

153d ago

Major Versions

v2.1.3 → v3.0.02020-12-08

v2.2.0 → v3.1.02022-01-15

v2.3.0 → v3.2.02022-01-31

v2.4.0 → v3.2.12022-05-12

2.0.x-dev → v3.2.52022-12-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c245d1effe6022f9f09b2e8b9cce26743de03a64d612cea4ce9885560d7c0b2?d=identicon)[yajra](/maintainers/yajra)

---

Top Contributors

[![yajra](https://avatars.githubusercontent.com/u/2687997?v=4)](https://github.com/yajra "yajra (255 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 (14 commits)")[![alfmel](https://avatars.githubusercontent.com/u/4806187?v=4)](https://github.com/alfmel "alfmel (7 commits)")[![jidago](https://avatars.githubusercontent.com/u/56063120?v=4)](https://github.com/jidago "jidago (6 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (5 commits)")[![wernerm](https://avatars.githubusercontent.com/u/411270?v=4)](https://github.com/wernerm "wernerm (5 commits)")[![Mahdiazadbar](https://avatars.githubusercontent.com/u/11613106?v=4)](https://github.com/Mahdiazadbar "Mahdiazadbar (4 commits)")[![forgandenny](https://avatars.githubusercontent.com/u/2554234?v=4)](https://github.com/forgandenny "forgandenny (4 commits)")[![ramsey](https://avatars.githubusercontent.com/u/42941?v=4)](https://github.com/ramsey "ramsey (3 commits)")[![lijialong1313](https://avatars.githubusercontent.com/u/15523161?v=4)](https://github.com/lijialong1313 "lijialong1313 (3 commits)")[![jidagob](https://avatars.githubusercontent.com/u/88225209?v=4)](https://github.com/jidagob "jidagob (3 commits)")[![AdamWillden](https://avatars.githubusercontent.com/u/4629144?v=4)](https://github.com/AdamWillden "AdamWillden (2 commits)")[![agonne](https://avatars.githubusercontent.com/u/50362864?v=4)](https://github.com/agonne "agonne (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)")[![eisberg](https://avatars.githubusercontent.com/u/9015003?v=4)](https://github.com/eisberg "eisberg (2 commits)")[![fairchilly](https://avatars.githubusercontent.com/u/1530527?v=4)](https://github.com/fairchilly "fairchilly (2 commits)")[![fhferreira](https://avatars.githubusercontent.com/u/140686?v=4)](https://github.com/fhferreira "fhferreira (2 commits)")

---

Tags

hacktoberfestoci8oraclepdopdo-ociphp

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90440.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)[wildside/userstamps

Laravel Userstamps provides an Eloquent trait which automatically maintains `created\_by` and `updated\_by` columns on your model, populated by the currently authenticated user in your application.

7511.7M13](/packages/wildside-userstamps)

PHPackages © 2026

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