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

63.0k3PHP

Since Aug 19Pushed 10y 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 2w 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 46% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

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://avatars.githubusercontent.com/u/846505?v=4)[Rex](/maintainers/Lance70176)[@Lance70176](https://github.com/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

[jdorn/sql-formatter

a PHP SQL highlighting library

3.8k117.8M121](/packages/jdorn-sql-formatter)[backup-manager/backup-manager

A framework agnostic database backup manager with user-definable procedures and support for S3, Dropbox, FTP, SFTP, and more with drivers for popular frameworks.

1.7k1.6M11](/packages/backup-manager-backup-manager)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M88](/packages/propel-propel1)[insolita/yii2-migration-generator

Set of gii tools for generating files for migration by schema of table , phpdoc or table data

108508.0k5](/packages/insolita-yii2-migration-generator)[xpdo/xpdo

A PDO-based Object/Relational Bridge Library

7088.4k4](/packages/xpdo-xpdo)[voku/session2db

A PHP library acting as a wrapper for PHP's default session handling functions which stores data in a MySQL database, providing both better performance and better security and protection against session fixation and session hijacking.

2920.0k](/packages/voku-session2db)

PHPackages © 2026

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