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. They are maintained by Oracle. The PHP OCI8 extension is the premier interface for working with Oracle Database, bringing high performance and availability features to PHP. It is included in PHP bundles and is also available on PECL to update your OCI8 extension in PHP 5.2 and later versions. The extension compiles with Oracle 10.2 or later client libraries. Oracle's standard cross-version database connectivity applies, allowing PHP to connection to multiple versions of Oracle Database. The PDO_OCI interface for PHP's PDO data-abstraction interface is available with PHP bundles.
Whether PHP is in the cloud or on-premise, you can install PHP OCI8 or PDO_OCI and connect to cloud databases. Follow the normal installation process for the operating system. Cloud specific articles are shown below.