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

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

jcrodriguezt/odbc-driver
========================

ODBC Driver for Laravel 5.5+

2.0.0(4y ago)1372MITPHPPHP ^8.0

Since Feb 28Pushed 4y agoCompare

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

READMEChangelog (3)Dependencies (5)Versions (13)Used By (0)

ODBC Driver for Laravel
=======================

[](#odbc-driver-for-laravel)

A simple ODBC driver for Laravel 6.0+. Requires PHP 8.

### Prerequisites

[](#prerequisites)

Enable the `pdo_odbc` [PHP extension](https://www.php.net/manual/en/ref.pdo-odbc.php)

### Installation

[](#installation)

```
composer require dbt/odbc-driver

```

Laravel will automatically discover the service provider.

### Configuration

[](#configuration)

In your `database.php` config, you'll need to add the ODBC connection configuration, eg:

```
'odbc' => [
    'driver'   => 'odbc',
    'dsn'      => env('ODBC_DSN'),
    'host'     => env('ODBC_HOST'),
    'database' => env('ODBC_DB'),
    'username' => env('ODBC_USERNAME'),
    'password' => env('ODBC_PASSWORD'),
],

```

### Custom Grammar

[](#custom-grammar)

To use SQL Server or other database engines, set the grammar in the config:

```
'odbc'   => [
    ...,
    'grammar' => [
        'query' => Illuminate\Database\Query\Grammars\SqlServerGrammar::class,
        'schema' => Illuminate\Database\Schema\Grammars\SqlServerGrammar::class,
    ],
],

```

### Usage

[](#usage)

Use the connection like any other, via the query builder or with Eloquent.

For Eloquent, you'll need to specify the model's connection:

```
class Users extends Eloquent {
    /** @var string */
    protected $connection = 'odbc';
}

```

### Connection String

[](#connection-string)

You may need to use some trial and error to figure out what your connection string should look like. Consult your vendor's database documentation.

It could be a connection path:

```
'dsn' => 'odbc:\\\\path\to\my\database',
```

Or a connection name:

```
'dsn' => 'odbc:\\\\my-connection-name',
```

Or something as simple as:

```
'dsn' => 'odbc:dbname',
```

### Contributions &amp; License

[](#contributions--license)

Contributions are welcome.

MIT Licensed. Do as you wish.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 76% 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 ~117 days

Recently: every ~149 days

Total

11

Last Release

1506d ago

Major Versions

0.4.0 → 1.0.02021-08-23

1.0.2 → 2.0.02022-05-18

PHP version history (3 changes)0.1.0PHP &gt;=7.1.3

0.2.0PHP &gt;=7.2.0

1.0.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c4c854b995e6d28a4fd40ce65aaf6b9d5e69fe02ffb321062c66bbfb271ef0c?d=identicon)[jcrodriguezt](/maintainers/jcrodriguezt)

---

Top Contributors

[![danielsdeboer](https://avatars.githubusercontent.com/u/13170241?v=4)](https://github.com/danielsdeboer "danielsdeboer (19 commits)")[![jcrodriguezt](https://avatars.githubusercontent.com/u/15658484?v=4)](https://github.com/jcrodriguezt "jcrodriguezt (3 commits)")[![jcrodmach](https://avatars.githubusercontent.com/u/100597528?v=4)](https://github.com/jcrodmach "jcrodmach (1 commits)")[![justsanjit](https://avatars.githubusercontent.com/u/9400880?v=4)](https://github.com/justsanjit "justsanjit (1 commits)")[![pleungkh](https://avatars.githubusercontent.com/u/60848874?v=4)](https://github.com/pleungkh "pleungkh (1 commits)")

---

Tags

laraveldatabasedriverodbc

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.4M95](/packages/mongodb-laravel-mongodb)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.5M1](/packages/glushkovds-phpclickhouse-laravel)[dbt/odbc-driver

ODBC Driver for Laravel 12+

29160.7k](/packages/dbt-odbc-driver)[aimeos/laravel-nestedset

Nested Set Model for Laravel

3714.4k6](/packages/aimeos-laravel-nestedset)

PHPackages © 2026

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