PHPackages                             marcuoli/oracledb - 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. [Database &amp; ORM](/categories/database)
4. /
5. marcuoli/oracledb

ActiveLibrary[Database &amp; ORM](/categories/database)

marcuoli/oracledb
=================

Oracle DB driver for Laravel 4+

117PHP

Since May 23Pushed 12y ago1 watchersCompare

[ Source](https://github.com/marcuoli/Laravel-OracleDB)[ Packagist](https://packagist.org/packages/marcuoli/oracledb)[ RSS](/packages/marcuoli-oracledb/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel 4.1 Oracle Database Package
===================================

[](#laravel-41-oracle-database-package)

OracleDB [![Build Status](https://camo.githubusercontent.com/f740fbfb4fa26ddc9242c59d4bc3b0be12875a7cf11d9baee86bad1247dbdaab/68747470733a2f2f7472617669732d63692e6f72672f6a66656c6465722f4c61726176656c2d4f7261636c6544422e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/jfelder/Laravel-OracleDB)
================================================================================================================================================================================================================================================================================================================

[](#oracledb-)

OracleDB is an Oracle Database Driver package for [Laravel 4.1](http://laravel.com/). OracleDB is an extension of [Illuminate/Database](https://github.com/illuminate/database) that uses the (Thanks to @taylorotwell)

**Please report any bugs you may find.**

- [Installation](#installation)
- [Basic Usage](#basic-usage)
- [Query Builder](#query-builder)
- [Eloquent](#eloquent)
- [Schema](#schema)
- [Migrations](#migrations)
- [License](#license)

Installation
============

[](#installation)

Add `marcuoli/oracledb` as a requirement to composer.json:

```
{
    "require": {
        "marcuoli/oracledb": "*"
    }
}
```

And then run `composer update`

Once Composer has installed or updated your packages you need to register OracleDB. Open up `app/config/app.php` and find the `providers` key and add:

```
'Jfelder\OracleDB\OracleDBServiceProvider'
```

Finally you need to publish a configuration file by running the following Artisan command.

```
$ php artisan config:publish marcuoli/oracledb

```

This will copy the configuration file to app/config/packages/jfelder/oracledb/database.php

Basic Usage
===========

[](#basic-usage)

The configuration file for this package is located at 'app/config/packages/jfelder/oracledb/database.php'. In this file you may define all of your oracle database connections. If you want to make one of these connections the default connection, enter the name you gave the connection into the "Default Database Connection Name" section in 'app/config/database.php'.

Once you have configured the OracleDB database connection(s), you may run queries using the 'DB' class as normal.

```
$results = DB::select('select * from users where id = ?', array(1));
```

The above statement assumes you have set the default connection to be the oracle connection you setup in OracleDB's config file and will always return an 'array' of results.

```
$results = DB::connection('oracle')->select('select * from users where id = ?', array(1));
```

Just like the built-in database drivers, you can use the connection method to access the oracle database(s) you setup in OracleDB's config file.

See [Laravel 4 Database Basic Docs](http://four.laravel.com/docs/database) for more information.

Query Builder
=============

[](#query-builder)

You can use the Query Builder functionality exactly the same as you would with the default DB class in Laravel 4. Every query on [Laravel 4 Database Query Builder Docs](http://four.laravel.com/docs/queries) has been tested to ensure that it works.

Offset &amp; Limit

```
$users = DB::table('users')->skip(10)->take(5)->get();
```

See [Laravel 4 Database Query Builder Docs](http://four.laravel.com/docs/queries) for more information.

Eloquent
========

[](#eloquent)

See [Laravel 4 Eloquent Docs](http://four.laravel.com/docs/eloquent) for more information.

Schema (WIP)
============

[](#schema-wip)

See [Laravel 4 Schema Docs](http://four.laravel.com/docs/schema) for more information.

Migrations (WIP)
================

[](#migrations-wip)

See [Laravel 4 Migrations Docs](http://four.laravel.com/docs/migrations) for more information.

License
=======

[](#license)

Licensed under the [MIT License](http://cheeaun.mit-license.org/).

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 55.6% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/90a633e4407a1fea0d05ef63b8059422f0830da6be82fc08a44389cf0b07a84d?d=identicon)[marcuoli](/maintainers/marcuoli)

---

Top Contributors

[![marcuoli](https://avatars.githubusercontent.com/u/4944810?v=4)](https://github.com/marcuoli "marcuoli (5 commits)")[![jfelder](https://avatars.githubusercontent.com/u/4504343?v=4)](https://github.com/jfelder "jfelder (4 commits)")

### Embed Badge

![Health badge](/badges/marcuoli-oracledb/health.svg)

```
[![Health](https://phpackages.com/badges/marcuoli-oracledb/health.svg)](https://phpackages.com/packages/marcuoli-oracledb)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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