PHPackages                             rtroncoso/odbc-driver - 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. rtroncoso/odbc-driver

ActiveLibrary

rtroncoso/odbc-driver
=====================

Laravel 5.0 ODBC Driver

0264PHP

Since Jul 16Pushed 10y ago1 watchersCompare

[ Source](https://github.com/rtroncoso/odbc-driver)[ Packagist](https://packagist.org/packages/rtroncoso/odbc-driver)[ RSS](/packages/rtroncoso-odbc-driver/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

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

[](#l5-odbc-driver)

Laravel 5.0 ODBC driver

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

[](#installation)

To Install this in your Laravel 5.0 app, open composer.json and add:

```
"require": {
  "garylocke/odbc-driver": "dev-master"
}
```

And then run:

`composer update`

This will download the required package from Packagist.org.

Then, in your app/config directory, open app.php and find:

`Illuminate\Database\DatabaseServiceProvider::class`

And replace it with:

`Ccovey\ODBCDriver\ODBCDriverServiceProvider::class`

Finally, be sure to add the odbc driver with connection information to the `connections` array in `config/database.php` file like so:

```
    'connections' => [
        'odbc' => [
            'driver' => 'odbc',
            'dsn' => 'Driver={iSeries Access ODBC Driver};System=my_system_name;',
            'grammar' => 'DB2',
            'username' => 'foo',
            'password' => 'bar',
            'database' => '',
        ],
    ],
```

Note that database is a required value in the array.

Notes
=====

[](#notes)

To add a custom grammar, add your file to ODBCDriver/Grammars with the name you would like to use (currently there is a DB2 grammar file if you would like a reference). Then, in your odbc config array, add the class name to the grammar key. If you would like to submit a grammar for use in the package, please submit a pull request and I will get it in asap.

If you would like to use a Laravel provided file, just add that instead. For example, if you want to use SQL Server Gramamr instead, you can add like so:

```
'odbc' => [
    'driver' => 'odbc',
    'dsn' => 'some driver',
    'grammar' => 'SqlServerGrammar',
    'username' => 'foo',
    'password' => 'bar',
    'database' => '',
],
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60.4% 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/2f41832af3f3ed70f7d9b7f67644dc6ecd622ceaea2459f4a3bca5218edf8ada?d=identicon)[rtroncoso](/maintainers/rtroncoso)

---

Top Contributors

[![ccovey](https://avatars.githubusercontent.com/u/1609830?v=4)](https://github.com/ccovey "ccovey (32 commits)")[![domex](https://avatars.githubusercontent.com/u/1824722?v=4)](https://github.com/domex "domex (11 commits)")[![rtroncoso](https://avatars.githubusercontent.com/u/1449912?v=4)](https://github.com/rtroncoso "rtroncoso (8 commits)")[![azrijamil](https://avatars.githubusercontent.com/u/38235944?v=4)](https://github.com/azrijamil "azrijamil (1 commits)")[![garylocke](https://avatars.githubusercontent.com/u/203160679?v=4)](https://github.com/garylocke "garylocke (1 commits)")

### Embed Badge

![Health badge](/badges/rtroncoso-odbc-driver/health.svg)

```
[![Health](https://phpackages.com/badges/rtroncoso-odbc-driver/health.svg)](https://phpackages.com/packages/rtroncoso-odbc-driver)
```

PHPackages © 2026

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