Download the PHP package yajra/laravel-oci8 without Composer
On this page you can find all versions of the php package yajra/laravel-oci8. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-oci8
Oracle DB driver for Laravel via OCI8
Laravel-OCI8
Laravel-OCI8 is an Oracle Database Driver package for Laravel. Laravel-OCI8 is an extension of Illuminate/Database that uses OCI8 extension to communicate with Oracle. Thanks to @taylorotwell.
Documentations
- You will find user-friendly and updated documentation here: Laravel-OCI8 Docs
- All about oracle and php:The Underground PHP and Oracle Manual
Laravel Version Compatibility
Laravel | Package |
---|---|
5.1.x | 5.1.x |
5.2.x | 5.2.x |
5.3.x | 5.3.x |
5.4.x | 5.4.x |
5.5.x | 5.5.x |
5.6.x | 5.6.x |
5.7.x | 5.7.x |
5.8.x | 5.8.x |
6.x | 6.x |
7.x | 7.x |
8.x | 8.x |
9.x | 9.x |
10.x | 10.x |
11.x | 11.x |
Quick Installation
Service Provider (Optional on Laravel 5.5+)
Once Composer has installed or updated your packages you need to register Laravel-OCI8. Open up config/app.php
and find the providers key and add:
Configuration (OPTIONAL)
Finally you can optionally publish a configuration file by running the following Artisan command.
If config file is not publish, the package will automatically use what is declared on your .env
file database configuration.
This will copy the configuration file to config/oracle.php
.
Note: For Laravel Lumen configuration, make sure you have a
config/database.php
file on your project and append the configuration below:Then, you can set connection data in your
.env
files:If you want to connect to a cluster containing multiple hosts, you can either set
tns
manually or set host as a comma-separated array and configure other fields as you wish:If you need to connect with the service name instead of tns, you can use the configuration below:
In some cases you may wish to set the connection parameters dynamically in your app. For instance, you may access more than one database, or your users may already have their own accounts on the Oracle database:
The callback function in your app must be static and accept a reference to the $config[]
array (which will already be populated with values set in the config file):
Then run your laravel installation...
Oracle Max Name Length
By default, DB object name are limited to 30 characters. To increase the limit, you can set the ORA_MAX_NAME_LEN=128
in your .env
file.
Note: this config requires Oracle 12c02 or higher.
[Laravel 5.2++] Oracle User Provider
When using oracle, we may encounter a problem on authentication because oracle queries are case sensitive by default. By using this oracle user provider, we will now be able to avoid user issues when logging in and doing a forgot password failure because of case sensitive search.
To use, just update auth.php
config and set the driver to oracle
Credits
- Arjay Angeles
- Jimmy Felder
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-oci8 with dependencies
ext-oci8 Version >=3.0.1
ext-pdo Version *
illuminate/database Version ^11.15.0
illuminate/pagination Version ^11.15.0
illuminate/support Version ^11.15.0
illuminate/validation Version ^11.15.0
yajra/laravel-pdo-via-oci8 Version ^3.4.4