PHPackages                             rexlu/laraveloracleodbc - 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. rexlu/laraveloracleodbc

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

rexlu/laraveloracleodbc
=======================

Adds an Oracle ODBC(PDO) driver package to Laravel 4.2

62.9k3PHP

Since Aug 19Pushed 9y ago3 watchersCompare

[ Source](https://github.com/Lance70176/Laravel-oracle-pdo-odbc-driver)[ Packagist](https://packagist.org/packages/rexlu/laraveloracleodbc)[ RSS](/packages/rexlu-laraveloracleodbc/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel-oracle-pdo-odbc-driver
==============================

[](#laravel-oracle-pdo-odbc-driver)

Adds an ODBC driver to Laravel 4.2, usable with Fluent and Eloquent.

最大用途是透過此套件可以連接自定義的界接層 (EX:SQL Relay)在連到 Oracle

如有在 laravel 5.2 需要搭配 SQL Relay 連到 Oracle 的專案

請寄信跟我聯絡

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

[](#installation)

Add `rexlu/laraveloracleodbc` as a requirement to composer.json:

```
{
    "require": {
        "rexlu/laraveloracleodbc": "dev-master"
    }
}
```

Update your packages with `composer update` or install with `composer install`.

or by command

```
composer require rexlu/laraveloracleodbc:dev-master -vvv
```

Once Composer has installed or updated your packages you need to register LaravelODBC and the package it uses (extradb) with Laravel itself. Open up `app/config/app.php` and find the providers key towards the bottom.

Add the following to the list of providers:

```
'rexlu\Laravelodbc\ODBCServiceProvider'
```

Configuration
=============

[](#configuration)

There is no separate package configuration file for LaravelODBC. You'll just add a new array to the `connections` array in `app/config/database.php`.

```
        'odbc' => array(
                'driver'   => 'odbc',
                'dsn'      => 'odbc:datasource',
                'charset'  => 'utf8',
                'username' => 'xxxxxUserxxxxxx',
                'password' => 'xxxxxxpasswordxxxx',
                'database' => 'xxxxxxDBxxxxxx',
                'prefix'   => '',
            ),

        ),

```

The ODBC driver is different from the pre-installed ones in that you're going to pass in the DSN instead of having Laravel build it for you. There are just too many ways to configure an ODBC database for this package to do it for you. Some sample configurations are at [php.net](http://php.net/manual/en/ref.pdo-odbc.connection.php).

**Don't forget to update your default database connection.**

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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/0707979b79257914ef8df6f72dcf6cfa78de860953a9a5ede3e23b92ac7e060e?d=identicon)[Lance70176](/maintainers/Lance70176)

---

Top Contributors

[![Lance70176](https://avatars.githubusercontent.com/u/846505?v=4)](https://github.com/Lance70176 "Lance70176 (6 commits)")

### Embed Badge

![Health badge](/badges/rexlu-laraveloracleodbc/health.svg)

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

###  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)
