Package Data | |
---|---|
Maintainer Username: | tochka-developers |
Maintainer Contact: | aqangeles@gmail.com (Arjay Angeles) |
Package Create Date: | 2017-06-21 |
Package Last Update: | 2018-02-26 |
Home Page: | https://yajrabox.com/docs/laravel-oci8 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-15 15:01:51 |
Package Statistics | |
---|---|
Total Downloads: | 18 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 3 |
Total Forks: | 0 |
Total Open Issues: | 0 |
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.
$ composer require yajra/laravel-oci8:"5.4.*"
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.
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.
$ 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...
The MIT License (MIT). Please see License File for more information.