Oracle PHP Developer Center

Access Oracle Database with the PHP OCI8 extension or the PDO_OCI Driver. PHP OCI8 and PDO_OCI are part of the PHP open source project and maintained by Oracle. The PHP OCI8 extension is the premier interface for working with Oracle Database, bringing high performance and availability features to PHP. This extension is included in PHP bundles and is also available on PECL as an update to your OCI8 extension. Oracle's standard cross-version database connectivity allows PHP to connect to multiple versions of Oracle Database. The PDO_OCI interface for PHP's PDO data-abstraction interface is also available with PHP bundles.

Oracle PHP Developer Center

PHP OCI8 Extension for Oracle Database

Deploy PHP in the cloud or connect to a cloud database

The PHP OCI8 extension and PDO_OCI Driver are cloud-ready. Whether PHP is in the cloud or on-premises, you can install PHP OCI8 or PDO_OCI and connect to cloud databases. Simply follow the normal installation process for the operating system. Cloud-specific resources are shown below.

Connect PHP apps to Autonomous Transaction Processing

PHP OCI8 features

    • Open source
    • Maintained by Oracle
    • SQL and PL/SQL execution
    • Fetching of large result sets
    • REF CURSORs
    • Implicit result sets
    • Large Objects: CLOBs and BLOBs
    • Binding and array binding
    • Transaction management
    • Inbuilt connection pooling
    • Database resident connection pooling (DRCP)
    • External authentication
    • Row prefetching
    • Statement caching
    • Client result caching
    • End-to-end tracing
    • Oracle Database high availability features
    • Oracle Net features including encryption