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

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

wajatimur/odbc-driver
=====================

ODBC Driver for Laravel

v1.1.1(12y ago)81.6k3PHPPHP &gt;=5.3.0

Since Mar 4Pushed 11y ago2 watchersCompare

[ Source](https://github.com/wajatimur/odbc-driver)[ Packagist](https://packagist.org/packages/wajatimur/odbc-driver)[ RSS](/packages/wajatimur-odbc-driver/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (3)Versions (7)Used By (0)

Laravel 4 ODBC [![Build Status](https://camo.githubusercontent.com/01b164831d962d98a51c41fc9ebf5d3790fce28ae3272177175d81db8c1867b1/68747470733a2f2f7472617669732d63692e6f72672f77616a6174696d75722f6f6462632d6472697665722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/wajatimur/odbc-driver)
=============================================================================================================================================================================================================================================================================================================

[](#laravel-4-odbc-)

An ODBC driver implementation, currently its support Laravel Framework only.

Requirements
------------

[](#requirements)

- PHP 5.3+
- Laravel 4.1.\*

Installation
------------

[](#installation)

L4ODBC can be install using composer by adding below line into your existing `composer.json` under require section and executing `composer update` in your Laravel project root folder.

```
"wajatimur/odbc-driver": "dev-master"
```

Then you need to bootstrap the driver by declaring the service provider registration in you `app.php` file under `app\config` path from Laravel project root folder.

```
'Foundation\Database\Driver\ODBCDriverServiceProvider',
```

Configuration
-------------

[](#configuration)

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

```
    'connections' => array(

        // .. Existing config here ..

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

Extending
---------

[](#extending)

To create a custom grammar just add your file to `Grammars` folder within the package. Below is the basic template to create a custom grammar.

```
namespace Foundation\Database\Driver\Grammars;

use Illuminate\Database\Query\Grammars\Grammar;

class MyCustomGrammar extends {
    // .. Add your override method here ..
}
```

### Using Custom Grammar

[](#using-custom-grammar)

To use the custom grammar, jusct change the grammar key in you database config base on you grammar file name. If you have a custom grammar with file name `MyCustomGrammar.php`, the grammar key should be as below.

```
'odbc' => array(
    'driver' => 'odbc',
    'dsn' => 'some driver',
    'grammar' => 'MyCustomGrammar',
    'username' => 'foo',
    'password' => 'bar',
    'database' => '',
),
```

If you would like to use a Laravel provided grammar file just add that instead. For example if you want to use SQL Server Gramamr, you can use the `SqlServerGrammar` as key in your database config. Others grammar provided by Laravel listed below.

- MySqlGrammar
- SqlServerGrammar
- SQLiteGrammar
- PostgresGrammar

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.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

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

###  Release Activity

Cadence

Every ~84 days

Total

5

Last Release

4481d ago

Major Versions

v0.9 → v1.02013-03-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d3d312724790ecadc5ab67d52363d2a0347d0caeb8c99cfdc10988c92fae1ac?d=identicon)[azrijamil](/maintainers/azrijamil)

---

Top Contributors

[![ccovey](https://avatars.githubusercontent.com/u/1609830?v=4)](https://github.com/ccovey "ccovey (28 commits)")[![azrijamil](https://avatars.githubusercontent.com/u/38235944?v=4)](https://github.com/azrijamil "azrijamil (11 commits)")[![domex](https://avatars.githubusercontent.com/u/1824722?v=4)](https://github.com/domex "domex (11 commits)")

### Embed Badge

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

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

###  Alternatives

[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k302.7k1](/packages/cybercog-laravel-love)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[genealabs/laravel-pivot-events

This package introduces new eloquent events for sync(), attach(), detach() or updateExistingPivot() methods on BelongsToMany relation.

1404.9M8](/packages/genealabs-laravel-pivot-events)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)[aglipanci/laravel-eloquent-case

Adds CASE statement support to Laravel Query Builder.

115157.2k](/packages/aglipanci-laravel-eloquent-case)

PHPackages © 2026

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