This Docker image is based on official PHP images and includes the Oracle Instant Client and OCI8 PHP extension. This integration allows connectivity to an Oracle database within the PHP environment.
Follow these instructions to set up and run the PHP image with Oracle OCI8:
git clone https://github.com/adrianharabula/php-oci8.git
cd php-oci8
cd php8.2-apache-oci8
docker build -t php82 .
cd ..
docker compose up -d
Open your web browser and visit http://localhost:8181/ocitest.php. You should see:
PHP Version: 8.2.13
Client Version: 21.12.0.0.0
Server Version: Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
Feel free to customize the configuration or explore additional features based on your requirements.
If you have improvements or suggestions, feel free to submit a pull request.