PHPackages                             develpup/doctrine-oci8-extended - 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. develpup/doctrine-oci8-extended

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

develpup/doctrine-oci8-extended
===============================

Doctrine's OCI8 driver with cursor support.

28.4k2PHP

Since May 9Pushed 5y ago3 watchersCompare

[ Source](https://github.com/jasonhofer/doctrine-oci8-extended)[ Packagist](https://packagist.org/packages/develpup/doctrine-oci8-extended)[ RSS](/packages/develpup-doctrine-oci8-extended/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Doctrine OCI8 Extended
======================

[](#doctrine-oci8-extended)

The Doctrine OCI8 driver with cursor support.

Usage
-----

[](#usage)

```
$config = new Doctrine\DBAL\Configuration();
$params = [
    'dbname'      => 'database_sid',
    'user'        => 'database_username',
    'password'    => 'database_password',
    'host'        => 'database.host',
    'port'        => 1521,
    'persistent'  => true,
    'driverClass' => 'Doctrine\DBAL\Driver\OCI8Ext\Driver',
];
$conn = Doctrine\DBAL\DriverManager::getConnection($params, $config);

$stmt = $conn->prepare('BEGIN MY_STORED_PROCEDURE(:user_id, :cursor); END;');
$stmt->bindValue('user_id', 42);
$stmt->bindParam('cursor', $cursor, \PDO::PARAM_STMT);
$stmt->execute();

/** @var $cursor Doctrine\DBAL\Driver\OCI8Ext\OCI8Cursor */
$cursor->execute();

while ($row = $cursor->fetch()) {
    print_r($row);
    echo PHP_EOL;
}

$cursor->closeCursor();
$stmt->closeCursor();
```

Types
-----

[](#types)

For `OCI8` types that are not represented by `PDO::PARAM_` constants, pass `OCI8::PARAM_` constants as the `type` argument of `bindValue()` and `bindParam()`.

Cursors
-------

[](#cursors)

Cursors can be specified as `PDO::PARAM_STMT`, `OCI8::PARAM_CURSOR`, or just `'cursor'`. Only the `bindParam()` method can be used to bind a cursor to a statement.

Sub-Cursors
-----------

[](#sub-cursors)

Cursor resources returned in a column of a result set are automatically fetched. You can change this behavior by passing in one of these *fetch mode* flags:

- `OCI8::RETURN_RESOURCES` to return the raw PHP resources.
- `OCI8::RETURN_CURSORS` to return the `OCI8Cursor` objects that have not yet been executed.

```
use Doctrine\DBAL\Driver\OCI8Ext\OCI8;

$rows = $stmt->fetchAll(\PDO::FETCH_ASSOC+OCI8::RETURN_CURSORS);
$rows = $stmt->fetchAll(\PDO::FETCH_BOTH+OCI8::RETURN_RESOURCES);
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/974242?v=4)[Jason Hofer](/maintainers/jasonhofer)[@jasonhofer](https://github.com/jasonhofer)

---

Top Contributors

[![jasonhofer](https://avatars.githubusercontent.com/u/974242?v=4)](https://github.com/jasonhofer "jasonhofer (23 commits)")

### Embed Badge

![Health badge](/badges/develpup-doctrine-oci8-extended/health.svg)

```
[![Health](https://phpackages.com/badges/develpup-doctrine-oci8-extended/health.svg)](https://phpackages.com/packages/develpup-doctrine-oci8-extended)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M114](/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)
