All Projects → yajra → Laravel Oci8

yajra / Laravel Oci8

Licence: mit
Oracle DB driver for Laravel 4|5|6|7|8 via OCI8

Projects that are alternatives of or similar to Laravel Oci8

Laravel Server Monitor
Don't let your servers just melt down
Stars: ✭ 595 (-6.89%)
Mutual labels:  laravel
Osu Web
the browser-facing portion of osu!
Stars: ✭ 610 (-4.54%)
Mutual labels:  laravel
Dbshield
Database firewall written in Go
Stars: ✭ 620 (-2.97%)
Mutual labels:  oracle
Awes Io
Awes.io // boilerplate based on Vue, Nuxt, TailwindCSS plus Laravel as a backend. 🤟
Stars: ✭ 599 (-6.26%)
Mutual labels:  laravel
Budget
Get a grip on your finances.
Stars: ✭ 609 (-4.69%)
Mutual labels:  laravel
Collect.js
💎  Convenient and dependency free wrapper for working with arrays and objects
Stars: ✭ 5,440 (+751.33%)
Mutual labels:  laravel
Befriended
Eloquent Befriended brings social media-like features like following, blocking and filtering content based on following or blocked models.
Stars: ✭ 596 (-6.73%)
Mutual labels:  laravel
Laravel Options
Global key-value store in the database
Stars: ✭ 626 (-2.03%)
Mutual labels:  laravel
Youtube
🔥 Laravel PHP Facade/Wrapper for the Youtube Data API
Stars: ✭ 610 (-4.54%)
Mutual labels:  laravel
Analogue
Analogue ORM : Data Mapper ORM for Laravel/PHP
Stars: ✭ 618 (-3.29%)
Mutual labels:  laravel
App
Laravel e-commerce Application.
Stars: ✭ 604 (-5.48%)
Mutual labels:  laravel
Mormot
Synopse mORMot ORM/SOA/MVC framework
Stars: ✭ 607 (-5.01%)
Mutual labels:  oracle
Laravel Admin
Laravel Admin Panel
Stars: ✭ 614 (-3.91%)
Mutual labels:  laravel
Core
Simple forum software for building great communities.
Stars: ✭ 5,372 (+740.69%)
Mutual labels:  laravel
Sqlinjectionwiki
A wiki focusing on aggregating and documenting various SQL injection methods
Stars: ✭ 623 (-2.5%)
Mutual labels:  oracle
Laravel Initializer
A convenient way to initialize your application
Stars: ✭ 597 (-6.57%)
Mutual labels:  laravel
Laravel Url Signer
Create and validate signed URLs with a limited lifetime
Stars: ✭ 611 (-4.38%)
Mutual labels:  laravel
Laravel Shopify
A full-featured Laravel package for aiding in Shopify App development
Stars: ✭ 634 (-0.78%)
Mutual labels:  laravel
Laravel Translatable
A Laravel package for multilingual models
Stars: ✭ 624 (-2.35%)
Mutual labels:  laravel
Google2fa Laravel
A One Time Password Authentication package, compatible with Google Authenticator for Laravel
Stars: ✭ 618 (-3.29%)
Mutual labels:  laravel

Oracle DB driver for Laravel 4|5|6|7|8 via OCI8

Build Status Total Downloads Latest Stable Version License

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

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.x 6.x.x
7.x.x 7.x.x
8.x.x 8.x.x

Quick Installation

composer require yajra/laravel-oci8:^8

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:

Yajra\Oci8\Oci8ServiceProvider::class,

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.

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', ''),
    'edition'       => env('DB_EDITION', 'ora$base'),
],

If you need to connect with the service name instead of tns, you can use the configuration below:

'oracle' => [
    'driver' => 'oracle',
    'host' => 'oracle.host',
    'port' => '1521',
    'database' => 'xe',
    'service_name' => 'sid_alias',
    'username' => 'hr',
    'password' => 'hr',
    'charset' => '',
    '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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].