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

ActivePhp-ext[Database &amp; ORM](/categories/database)

oci8/oci8
=========

The OCI8 extension lets you access Oracle Database.

v3.4.1(4mo ago)154038[4 issues](https://github.com/php/pecl-database-oci8/issues)PHP-3.01PHPPHP &gt;=8.2.0CI passing

Since Dec 23Pushed 4mo ago11 watchersCompare

[ Source](https://github.com/php/pecl-database-oci8)[ Packagist](https://packagist.org/packages/oci8/oci8)[ Docs](https://github.com/php/pecl-database-oci8)[ RSS](/packages/oci8-oci8/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (2)Used By (0)

The PHP OCI8 Extension
======================

[](#the-php-oci8-extension)

Use the PHP OCI8 extension to access Oracle Database.

Documentation is at .

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

[](#installation)

**PECL**

The PHP OCI8 extension is available in the PECL repository [here](https://pecl.php.net/package/oci8).

Use `pecl install oci8` to install for PHP 8.2 and newer versions.

Use `pecl install oci8-3.2.1` to install for PHP 8.1.

Use `pecl install oci8-3.0.1` to install for PHP 8.0.

Use `pecl install oci8-2.2.0` to install for PHP 7.

If your PHP was built with DTrace enabled, then set the environment variable PHP\_DTRACE=yes before running `pecl install oci8`. For example, on Linux:

```
export PHP_DTRACE=yes

```

You may additionally need the dtrace-devel or systemtap-sdt-devel package installed.

On Windows, pre-compiled OCI8 DLLs are available for download and quick use from the [PECL repository](https://pecl.php.net/package/oci8). You may use the DLL directly by including them in the `php.ini` file. See [OCI8 installation](https://www.php.net/manual/en/oci8.installation.php) for more details.

**PIE**

The PHP OCI8 extension is also available in the PIE repository [here](https://packagist.org/packages/oci8/oci8).

To install from PIE, use the [pie](https://github.com/php/pie/releases) utility and run:

```
pie install oci8/oci8

```

**Installation Dependencies**

The PHP OCI8 extension can be linked with Oracle Client libraries from Oracle Database 11.2 or later. These libraries are found in your database installation, or in the free Oracle Instant Client packages from

Install the 'Basic' or 'Basic Light' Instant Client package. If building from source, then also install the SDK package.

Oracle Database's standard cross-version connectivity applies. For example, PHP OCI8 linked with Instant Client 19c can connect to Oracle Database 11.2 or later. See Oracle Support's note "Oracle Client / Server Interoperability Support" (ID 207303.1) for details.

Tests
-----

[](#tests)

To run the tests, see [tests/README.md](tests/README.md).

Useful Links
------------

[](#useful-links)

A sample configuration php.ini file is at

From PHP 8.4, the source code for PHP OCI8 is at:

For earlier versions, see the PHP source:

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance70

Regular maintenance activity

Popularity27

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Unknown

Total

1

Last Release

147d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/370a4378ba1e85c1182cb1aafc0b1f75729f5a55949398fef0829f3491362fb2?d=identicon)[sharadraju](/maintainers/sharadraju)

---

Top Contributors

[![cjbj](https://avatars.githubusercontent.com/u/200778?v=4)](https://github.com/cjbj "cjbj (20 commits)")[![sharadraju](https://avatars.githubusercontent.com/u/86588332?v=4)](https://github.com/sharadraju "sharadraju (18 commits)")[![mvorisek](https://avatars.githubusercontent.com/u/2228672?v=4)](https://github.com/mvorisek "mvorisek (4 commits)")[![shivammathur](https://avatars.githubusercontent.com/u/1571086?v=4)](https://github.com/shivammathur "shivammathur (4 commits)")[![datadestroyd](https://avatars.githubusercontent.com/u/34713191?v=4)](https://github.com/datadestroyd "datadestroyd (2 commits)")[![derickr](https://avatars.githubusercontent.com/u/208074?v=4)](https://github.com/derickr "derickr (2 commits)")[![petk](https://avatars.githubusercontent.com/u/1614009?v=4)](https://github.com/petk "petk (1 commits)")

---

Tags

databaseoraclephpdatabaseoracleoci8

### Embed Badge

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

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

###  Alternatives

[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k578.4M5.6k](/packages/doctrine-dbal)[catfan/medoo

The lightweight PHP database framework to accelerate development

4.9k1.5M194](/packages/catfan-medoo)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8703.0M17](/packages/yajra-laravel-oci8)[nette/database

💾 Nette Database: layer with a familiar PDO-like API but much more powerful. Building queries, advanced joins, drivers for MySQL, PostgreSQL, SQLite, MS SQL Server and Oracle.

5656.7M234](/packages/nette-database)[dibi/dibi

Dibi is Database Abstraction Library for PHP

5013.8M120](/packages/dibi-dibi)[envms/fluentpdo

FluentPDO is a quick and light PHP library for rapid query building. It features a smart join builder, which automatically creates table joins.

925511.7k13](/packages/envms-fluentpdo)

PHPackages © 2026

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