PHPackages                             billcunha/laravel-oci8 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. billcunha/laravel-oci8

ActiveLibrary

billcunha/laravel-oci8
======================

Oracle DB driver for Laravel 4|5 via OCI8

5.5.1(8y ago)022MITPHPPHP &gt;=7.0.0

Since Jan 15Pushed 8y ago1 watchersCompare

[ Source](https://github.com/billcunha/laravel-oci8)[ Packagist](https://packagist.org/packages/billcunha/laravel-oci8)[ RSS](/packages/billcunha-laravel-oci8/feed)WikiDiscussions 5.4 Synced 1mo ago

READMEChangelogDependencies (6)Versions (198)Used By (0)

Oracle DB driver for Laravel 4|5 via OCI8
=========================================

[](#oracle-db-driver-for-laravel-45-via-oci8)

Laravel-OCI8
------------

[](#laravel-oci8)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8a80da9bde2435bd08c31e4749677a5c66eb0906291337009b685d2392fbac83/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f79616a72612f6c61726176656c2d6f6369382e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/yajra/laravel-oci8)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/e5b9fdea4178808535abdd8a8813509f3f1c3d9a74e6c669bc7fc962ce54f739/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f79616a72612f6c61726176656c2d6f6369382f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/yajra/laravel-oci8)[![Coverage Status](https://camo.githubusercontent.com/5acea5d09bf615ad5ebd1509a82abe686701c36893cfc1d080ca7c22d88e6f71/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f79616a72612f6c61726176656c2d6f6369382e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/yajra/laravel-oci8/code-structure)[![Quality Score](https://camo.githubusercontent.com/7b75f79b2387cf4c4fa7921cc9d8d7ebeef4e426bce58cfcf0056e2fc5def4c8/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f79616a72612f6c61726176656c2d6f6369382e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/yajra/laravel-oci8)[![Total Downloads](https://camo.githubusercontent.com/1172ac0afa2339cad035971844203735a4e15e1bf7172efd3e033268ed3d495b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f79616a72612f6c61726176656c2d6f6369382e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/yajra/laravel-oci8)

Laravel-OCI8 is an Oracle Database Driver package for [Laravel](http://laravel.com/). Laravel-OCI8 is an extension of [Illuminate/Database](https://github.com/illuminate/database) that uses [OCI8](http://php.net/oci8) extension to communicate with Oracle. Thanks to @taylorotwell.

Documentations
--------------

[](#documentations)

- You will find user friendly and updated documentation here: [Laravel-OCI8 Docs](https://yajrabox.com/docs/laravel-oci8)
- You will find updated API documentation here: [Laravel-OCI8 API](http://yajra.github.io/laravel-oci8/api/)

Quick Installation \[Laravel 5.4\]
----------------------------------

[](#quick-installation-laravel-54)

```
$ composer require yajra/laravel-oci8:"5.4.*"

```

Quick Installation \[Laravel 5.3\]
----------------------------------

[](#quick-installation-laravel-53)

```
$ composer require yajra/laravel-oci8:"5.3.*"

```

Quick Installation \[Laravel 5.2\]
----------------------------------

[](#quick-installation-laravel-52)

```
$ composer require yajra/laravel-oci8:"5.2.*"

```

Quick Installation \[Laravel 5.1\]
----------------------------------

[](#quick-installation-laravel-51)

```
$ composer require yajra/laravel-oci8:"5.1.*"

```

Laravel 4.2 &amp; 5.0 Users
---------------------------

[](#laravel-42--50-users)

Please use [2.4](https://github.com/yajra/laravel-oci8/tree/2.4) branch.

Service Provider
----------------

[](#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 from `yajra\Oci8` to follow the name standard for vendor name.

Configuration (OPTIONAL)
------------------------

[](#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](http://lumen.laravel.com/docs/configuration#configuration-files), 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
--------------------------------------

[](#laravel-52-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
-------

[](#credits)

- [Arjay Angeles](https://github.com/yajra)
- [Jimmy Felder](https://github.com/jfelder/Laravel-OracleDB)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Buy me a beer
-------------

[](#buy-me-a-beer)

[![Click here to lend your support to: Laravel-OCI8 and make a donation at pledgie.com !](https://camo.githubusercontent.com/9a3bc17f470ecc2315799e807c60f16b7011b712317d0859ce2be98c0b1d10d4/68747470733a2f2f706c65646769652e636f6d2f63616d706169676e732f32393531362e706e673f736b696e5f6e616d653d6368726f6d65)](https://pledgie.com/campaigns/29516)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 89.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~7 days

Recently: every ~13 days

Total

194

Last Release

3182d ago

Major Versions

v3.1.1 → v4.2.22016-01-13

v2.4.9 → v3.1.32016-01-19

3.0.x-dev → v4.2.32016-01-19

v2.4.10 → v4.2.42016-01-21

4.0.x-dev → v5.1.02016-03-08

PHP version history (6 changes)0.1.0PHP &gt;=5.3.0

v2.0.0.betaPHP &gt;=5.4.0

v2.0.0PHP &gt;=5.4

v3.0.0PHP &gt;=5.5.9

v5.3.0PHP &gt;=5.6.4

5.5PHP &gt;=7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f4e43d5db2384d5b84e94e79ac5167c1b71f9971cd5934c2ef90715652c0977?d=identicon)[billcunha](/maintainers/billcunha)

---

Top Contributors

[![yajra](https://avatars.githubusercontent.com/u/2687997?v=4)](https://github.com/yajra "yajra (458 commits)")[![forgandenny](https://avatars.githubusercontent.com/u/2554234?v=4)](https://github.com/forgandenny "forgandenny (10 commits)")[![mfrancoisbbs](https://avatars.githubusercontent.com/u/133215273?v=4)](https://github.com/mfrancoisbbs "mfrancoisbbs (9 commits)")[![ChaosPower](https://avatars.githubusercontent.com/u/260845?v=4)](https://github.com/ChaosPower "ChaosPower (6 commits)")[![jfelder](https://avatars.githubusercontent.com/u/4504343?v=4)](https://github.com/jfelder "jfelder (4 commits)")[![billcunha](https://avatars.githubusercontent.com/u/18537868?v=4)](https://github.com/billcunha "billcunha (3 commits)")[![mstaack](https://avatars.githubusercontent.com/u/10169509?v=4)](https://github.com/mstaack "mstaack (3 commits)")[![zulrang](https://avatars.githubusercontent.com/u/1043189?v=4)](https://github.com/zulrang "zulrang (2 commits)")[![Tylerian](https://avatars.githubusercontent.com/u/1430805?v=4)](https://github.com/Tylerian "Tylerian (2 commits)")[![jf-m](https://avatars.githubusercontent.com/u/9339799?v=4)](https://github.com/jf-m "jf-m (2 commits)")[![filipegar](https://avatars.githubusercontent.com/u/9282579?v=4)](https://github.com/filipegar "filipegar (2 commits)")[![johnrcui](https://avatars.githubusercontent.com/u/6743129?v=4)](https://github.com/johnrcui "johnrcui (2 commits)")[![ardani](https://avatars.githubusercontent.com/u/2499777?v=4)](https://github.com/ardani "ardani (2 commits)")[![joaorobertopb](https://avatars.githubusercontent.com/u/6556083?v=4)](https://github.com/joaorobertopb "joaorobertopb (1 commits)")[![fabiothomaz](https://avatars.githubusercontent.com/u/795025?v=4)](https://github.com/fabiothomaz "fabiothomaz (1 commits)")[![felippeduarte](https://avatars.githubusercontent.com/u/8507498?v=4)](https://github.com/felippeduarte "felippeduarte (1 commits)")[![abdgad](https://avatars.githubusercontent.com/u/24955909?v=4)](https://github.com/abdgad "abdgad (1 commits)")[![liberostelios](https://avatars.githubusercontent.com/u/1896327?v=4)](https://github.com/liberostelios "liberostelios (1 commits)")[![manuzcom](https://avatars.githubusercontent.com/u/1845799?v=4)](https://github.com/manuzcom "manuzcom (1 commits)")[![pawel-damasiewicz](https://avatars.githubusercontent.com/u/489857?v=4)](https://github.com/pawel-damasiewicz "pawel-damasiewicz (1 commits)")

---

Tags

laraveloracleoci8laravel5laravel4pdo\_oci

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/billcunha-laravel-oci8/health.svg)

```
[![Health](https://phpackages.com/badges/billcunha-laravel-oci8/health.svg)](https://phpackages.com/packages/billcunha-laravel-oci8)
```

###  Alternatives

[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8703.0M17](/packages/yajra-laravel-oci8)[rutorika/sortable

Adds sortable behavior and ordering to Laravel Eloquent models. Grouping and many to many supported.

299992.5k14](/packages/rutorika-sortable)[jfelder/oracledb

Oracle DB driver for Laravel

11518.2k](/packages/jfelder-oracledb)[sjdaws/vocal

Recursive functionality for Eloquent in Laravel 4 and 5

4315.2k1](/packages/sjdaws-vocal)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
