PHPackages                             rexlu/laravelodbc - 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/laravelodbc

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

rexlu/laravelodbc
=================

Adds an ODBC(PDO) driver package to Laravel 4.2, use special method.

2121PHP

Since Oct 8Pushed 8y ago2 watchersCompare

[ Source](https://github.com/Lance70176/jpg-odbc-driver)[ Packagist](https://packagist.org/packages/rexlu/laravelodbc)[ RSS](/packages/rexlu-laravelodbc/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

odbc-driver
===========

[](#odbc-driver)

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

自定各種 SQL 語法

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

[](#installation)

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

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

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

or by command

```
composer require rexlu/laravelodbc: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',
                '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

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

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 (5 commits)")

### Embed Badge

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

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

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

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

8351.6M87](/packages/propel-propel1)[pgvector/pgvector

pgvector support for PHP

198628.3k10](/packages/pgvector-pgvector)

PHPackages © 2026

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