PHPackages                             dbmaker/laravel-odbc - 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. dbmaker/laravel-odbc

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

dbmaker/laravel-odbc
====================

DBMaker integration for Laravel framework

1.4.0(3y ago)0953↓70.8%4[1 issues](https://github.com/dbmaker-go/laravel-dbmaker/issues)[2 PRs](https://github.com/dbmaker-go/laravel-dbmaker/pulls)MITPHPPHP &gt;=7.3

Since Aug 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/dbmaker-go/laravel-dbmaker)[ Packagist](https://packagist.org/packages/dbmaker/laravel-odbc)[ Docs](http://www.dbmaker.com.tw)[ RSS](/packages/dbmaker-laravel-odbc/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (2)Versions (6)Used By (0)

DBMaker integration for Laravel Framework
-----------------------------------------

[](#dbmaker-integration-for-laravel-framework)

laravel-dbmaker is a DBMaker service provider for Laravel. It provides DBMaker Connection by extending the Illuminate Database component of the laravel framework.

### How to install

[](#how-to-install)

> `composer require dbmaker/laravel-odbc` To add source in your project

### install php\_odbc for dbmaker

[](#install-php_odbc-for-dbmaker)

We suggest using the libary we build

1. Download URL [](https://github.com/dbmaker-go/php_ext/releases/download/1.0.0/php_dbmaker-5.4-7.3-Linux2_x86_64.tgz)[https://github.com/dbmaker-go/php\_ext/releases/download/1.0.0/php\_dbmaker-5.4-7.3-Linux2\_x86\_64.tgz](https://github.com/dbmaker-go/php_ext/releases/download/1.0.0/php_dbmaker-5.4-7.3-Linux2_x86_64.tgz) and unzip
2. According to your DBMaker version to choice bundle or standard
3. rename pdo\_odbc.ini to 20-pdo\_odbc.ini and move to /etc/php.d/
4. copy pdo\_odbc.so to /usr/lib64/php/modules/
5. `php -m` Check if the installation was successful

you can follow this step

```
# wget https://github.com/dbmaker-go/php_ext/releases/download/1.0.0/php_dbmaker-5.4-7.3-Linux2_x86_64.tgz
# tar zxvf php_dbmaker-5.4-7.3-Linux2_x86_64.tgz
# mv php_dbmaker/bundle/pdo_odbc.ini /etc/php.d/20-pdo-odbc.ini
# mv php_dbmaker/bundle/pdo_odbc.so /usr/lib64/php/modules/pdo-odbc.so
# php -m

```

Note: If your default installation directory of DBMaker standard is not `/home/dbmaker/5.4` or bundle is not `/opt/dbmaker`, please add installation directory to LD\_LIBRARY\_PATH environment variable.

### Usage Instructions

[](#usage-instructions)

It's very simple to configure:

**1) Add database to database.php file**

```
'dbmaker' => [
    'driver' => 'odbc',
    'dsn' => 'odbc:DSN=DBNAME',
    'database' => 'DBNAME',
    'host' => 'localhost',
    'username' => 'username',
    'password' => 'password',
    'options' => [
            'idcap' => 1   //please set the value same as your server db_idcap
    ]
]
```

**2) set default database to dbmaker**

```
'default' =>  'dbmaker',
```

**3) testing**

```
# php artisan make:command MyCommand

```

```
# vi app/Console/Commands/MyCommand.php

```

find

```
protected $signature = 'command:name';

```

change to

```
protected $signature = 'my:command';

```

and add test code

```
public function handle()
{
    $data= \DB::table('TA1')->get('C1');
	print_R($data);
}

```

```
# vi app/Console/Kernel.php

```

```
protected $commands = [
    // ...
    Commands\MyCommand::class,  //add this
];

```

run

```
# php artisan my:command

```

### Laravel DB Usage

[](#laravel-db-usage)

Consult the [Laravel framework documentation](http://laravel.com/docs)

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.8% 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 ~317 days

Total

5

Last Release

1237d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/12ce3cd51ce55f8638174b18ee05da1d4bf1d35b85fc289b0363132aaf48cdc2?d=identicon)[dbmaker](/maintainers/dbmaker)

---

Top Contributors

[![helloj](https://avatars.githubusercontent.com/u/5117416?v=4)](https://github.com/helloj "helloj (7 commits)")[![erycson](https://avatars.githubusercontent.com/u/2156082?v=4)](https://github.com/erycson "erycson (1 commits)")[![jessicastcotripal](https://avatars.githubusercontent.com/u/88110167?v=4)](https://github.com/jessicastcotripal "jessicastcotripal (1 commits)")

---

Tags

laraveldatabasepdoodbcdbmaker

### Embed Badge

![Health badge](/badges/dbmaker-laravel-odbc/health.svg)

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

###  Alternatives

[cooperl/laravel-db2

laravel-db2 is a simple DB2 service provider for Laravel. It provides DB2 Connection by extending the Illuminate Database component of the laravel framework.

58123.4k1](/packages/cooperl-laravel-db2)[ntanduy/cloudflare-d1-database

Cloudflare D1 database driver for Laravel — full Eloquent &amp; Query Builder support.

276.8k](/packages/ntanduy-cloudflare-d1-database)[ramadan/easy-model

A Laravel package for enjoyably managing database queries.

111.6k](/packages/ramadan-easy-model)

PHPackages © 2026

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