Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

octabevi's avatar

Install Oracle Drvier Laravel 10.X

Good morning, I have a problem, I am using laravel 10.X and PHP 8.2.9, I need to install the Oracle driver to be able to work with this type of DB, in this project I use several connectors.

The problem I have is that when I install it, it does not detect the oci8 library located in the /ext folder and enabled later in php.ini.

I can not downgrade the version of Laravel or PHP, what other type of solution can I apply?

I tryed to use: https://github.com/yajra/laravel-oci8

0 likes
4 replies
octabevi's avatar

@Tray2

Yes, I have tried it but it still doesn't work, it seems like oci8 is not compatible with PHP 8.2.X versions, I need to be able to connect via oracle in laravel creating the connection in databases.php since I have several database connections of different types.

Is there any other way to do it ?

octabevi's avatar
octabevi
OP
Best Answer
Level 2

I solved it by installing PHP version 8.2.11 + Laravel 10.X , and instantclient_21_12.

First i installed and configured PHP , enabled oci8_19 extension, later i create the laravel project and configured my oracle DB connection in databases.php , later installed instantclient con mi C:/ and define phpinfo() in the web.php for saw the changes.

knox33's avatar

"Hi Octabevi, I've encountered the same problem. Could you please share how you enabled the oci8_19 extension? Thank you."

Please or to participate in this conversation.