openrajska / php-oracledb-ext
The oracledb PHP extension, a Rust thin Backend for Oracle Database (community project, not affiliated with Oracle)
Package info
github.com/openrajska/php-oracledb-ext
Language:Rust
Type:php-ext
Ext name:ext-oracledb
pkg:composer/openrajska/php-oracledb-ext
Requires
- php: ~8.4.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-12-02 17:20:59 UTC
README
The oracledb PHP extension: a Rust thin Backend for Oracle Database, built on
the oracledb crate. No Oracle
Instant Client, nothing to compile. It is the Backend of
openrajska/php-oracledb, the typed API your code calls; use it through that
package.
A community project, not affiliated with, endorsed by or sponsored by Oracle.
Note
The project is 0.x: the API may break between minor versions.
Installing
With PIE 1.4.0 or newer:
pie install openrajska/php-oracledb-ext
php --ri oracledb # check it is loaded
PIE downloads a pre-built binary for your platform and never compiles. Every binary is built for PHP 8.4, NTS and ZTS (PIE picks the one your PHP needs), on:
| OS | Architectures | Notes |
|---|---|---|
| Linux, glibc | x86_64, arm64 | glibc 2.36 or newer (Debian 12 bookworm and later) |
| Linux, musl | x86_64, arm64 | Alpine, such as the official php:8.4-*-alpine images |
| macOS | arm64 |
Anything else has no binary:
- Windows: PIE refuses the package when it resolves it.
- macOS Intel: PIE fails when it finds no matching binary.
- glibc older than 2.36 (Ubuntu 22.04, RHEL and Oracle Linux 8 and 9, Amazon Linux 2023): PIE cannot tell the glibc version, so it installs the glibc binary anyway, and PHP may then fail to load it. Not supported.
Installing in CI or a Docker build needs a few more things; see Installing the extension in CI.
Configuration
| INI setting | Default | Meaning |
|---|---|---|
oracledb.pool_idle_timeout |
600 |
Seconds a Pool can go unused (no Session on loan, no connect(), no Release) before a later connect() closes it. 0 keeps every Pool until the process ends. A negative value raises a warning and keeps 600; a value that is not a number raises a warning and counts as 0, as in PHP's own integer settings. Set in php.ini or with -d, not at runtime. |
Verifying a binary
Each binary carries a build provenance attestation, stored in the monorepo where it was built. To check that a zip was built by this project's release workflow:
gh attestation verify php_oracledb-v0.1.0_php8.4-x86_64-linux-glibc.zip --repo openrajska/php-oracle
Releases are immutable: once published, their binaries never change.
Contributing
This repository is a read-only mirror of the
openrajska/php-oracle monorepo,
and its history starts at the move to the oracledb names. Open issues and
pull requests there.
License
MIT or Apache-2.0, at your option.