kaguya / laravel-oci8
Oracle DB driver for Laravel 4|5 via OCI8
Requires
- php: >=5.6.4
- ext-oci8: >=2.0.0
- illuminate/database: 5.4.*
- illuminate/support: 5.4.*
- yajra/laravel-pdo-via-oci8: ^1.3.1
Requires (Dev)
- mockery/mockery: ~0.9.4
- phpunit/phpunit: ~5.4
- scrutinizer/ocular: ~1.1
- 5.4.x-dev
- v5.4.7
- v5.4.6
- v5.4.5
- v5.4.4
- v5.4.3
- v5.4.2
- v5.4.1
- v5.4.0
- 5.3.x-dev
- v5.3.9
- v5.3.8
- v5.3.7
- v5.3.6
- v5.3.5
- v5.3.4
- v5.3.3
- v5.3.2
- v5.3.1
- v5.3.0
- 5.2.x-dev
- v5.2.13
- v5.2.12
- v5.2.11
- v5.2.10
- v5.2.9
- v5.2.8
- v5.2.7
- v5.2.6
- v5.2.5
- v5.2.4
- v5.2.3
- v5.2.2
- v5.2.1
- v5.2.0
- 5.1.x-dev
- v5.1.3
- v5.1.2
- v5.1.1
- v5.1.0
- v4.2.6
- v4.2.5
- v4.2.4
- v4.2.3
- v4.2.2
- v4.2.1
- v4.1.2
- v4.1.1
- v4.1.0
- 4.0.x-dev
- v4.0.3
- v4.0.2
- v4.0.1
- v4.0.0
- v4.0.0-RC1.1
- v4.0.0-RC1
- v3.1.3
- v3.1.2
- v3.1.1
- v3.1.0
- 3.0.x-dev
- v3.0.0
- 2.4.x-dev
- v2.4.10
- v2.4.9
- v2.4.8
- v2.4.7
- v2.4.6
- v2.4.5
- v2.4.4
- v2.4.3
- v2.4.2
- v2.4.1
- v2.4.0
- v2.3.1
- v2.3.0
- v2.2.0
- v2.1.8
- v2.1.7
- v2.1.6
- v2.1.5
- v2.1.4.2
- v2.1.4.1
- v2.1.4
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.8
- v2.0.7
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v2.0.0.beta
- v1.15.0
- v1.14.1
- v1.14.0
- v1.13.0
- v1.12.0
- v1.11.0
- v1.10.3
- v1.10.2
- v1.10.1
- v1.10.0
- v1.9.0
- v1.8.0
- v1.7.0
- v1.6.4
- v1.6.3
- v1.6.2
- v1.6.1
- v1.6.0
- v1.5.12
- v1.5.11
- v1.5.10
- v1.5.9
- v1.5.8
- v1.5.7
- v1.5.6
- v1.5.5
- v1.5.4
- v1.5.3
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.6
- v1.4.5
- v1.4.4
- v1.4.3
- v1.4.2
- v1.4.1
- v1.4.0
- v1.3.1
- v1.3.0
- v1.2.0
- v1.1.1
- 1.1.0
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 0.3.0
- 0.2.29
- 0.2.28
- 0.2.27
- 0.2.26
- 0.2.25
- 0.2.24
- 0.2.23
- 0.2.22
- 0.2.21
- 0.2.20
- 0.2.19
- 0.2.18
- 0.2.17
- 0.2.16
- 0.2.15
- 0.2.14
- 0.2.13
- 0.2.12
- 0.2.11
- 0.2.10
- 0.2.9
- 0.2.8
- 0.2.7
- 0.2.6
- 0.2.5
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.6
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- dev-reserved-words-testing-idea
- dev-master
- dev-develop
This package is not auto-updated.
Last update: 2024-12-13 21:00:05 UTC
README
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
- You will find updated API documentation here: Laravel-OCI8 API
Quick Installation [Laravel 5.4]
$ composer require yajra/laravel-oci8:"5.4.*"
Quick Installation [Laravel 5.3]
$ composer require yajra/laravel-oci8:"5.3.*"
Quick Installation [Laravel 5.2]
$ composer require yajra/laravel-oci8:"5.2.*"
Quick Installation [Laravel 5.1]
$ composer require yajra/laravel-oci8:"5.1.*"
Laravel 4.2 & 5.0 Users
Please use 2.4 branch.
Service Provider
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:
Yajra\Oci8\Oci8ServiceProvider::class,
Important: Since v4.0, the package will now use
Yajra\Oci8
(capital Y) namespace fromyajra\Oci8
to follow the name standard for vendor name.
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 configuartion.
$ php artisan vendor:publish --tag=oracle
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:
'oracle' => [ 'driver' => 'oracle', 'tns' => env('DB_TNS', ''), 'host' => env('DB_HOST', ''), 'port' => env('DB_PORT', '1521'), 'database' => env('DB_DATABASE', ''), 'username' => env('DB_USERNAME', ''), 'password' => env('DB_PASSWORD', ''), 'charset' => env('DB_CHARSET', 'AL32UTF8'), 'prefix' => env('DB_PREFIX', ''), 'prefix_schema' => env('DB_SCHEMA_PREFIX', ''), ],
And run your laravel installation...
[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
'providers' => [ 'users' => [ 'driver' => 'oracle', 'model' => App\User::class, ], ]
Credits
License
The MIT License (MIT). Please see License File for more information.