PHPackages                             sozinov/laravel-6-firebird-role - 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. sozinov/laravel-6-firebird-role

ActiveLibrary

sozinov/laravel-6-firebird-role
===============================

A Firebird database driver for Laravel 6 with role in dsn

00PHP

Since Jun 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/sozinov/laravel-6-firebird-role)[ Packagist](https://packagist.org/packages/sozinov/laravel-6-firebird-role)[ RSS](/packages/sozinov-laravel-6-firebird-role/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Firebird database driver for Laravel 6 with role in dsn
-------------------------------------------------------

[](#firebird-database-driver-for-laravel-6-with-role-in-dsn)

Based on Package [KKSzymanowski/laravel-6-firebird](https://github.com/KKSzymanowski/laravel-6-firebird.git) but simplified, modernized and made compatible with Laravel 6.

### Installation

[](#installation)

```
composer require "sozinov/laravel-6-firebird-role:*"

```

Add you database configuration in `config/database.php`

```
'connections' => [
    'myFirebirdConnection' => [
        'driver'=> 'firebird',
        'host'=> env('DB_FIREBIRD_HOST', 'localhost'),
        'database' => env('DB_FIREBIRD_DATABASE', '/path_to/database.fdb'),
        'username' => env('DB_FIREBIRD_USERNAME', 'SYSDBA'),
        'password' => env('DB_FIREBIRD_PASSWORD', 'masterkey'),
        'charset'  => env('DB_FIREBIRD_CHARSET', 'UTF8'),
		'role'     => env('DB_FIREBIRD_ROLE', ''),
    ],

    // ...
],
```

Add the `DB_FIREBIRD_*` environment variables to you `.env` file, for example:

```
DB_FIREBIRD_HOST=192.168.0.1
DB_FIREBIRD_DATABASE=C:/DB.FDB
DB_FIREBIRD_USERNAME=user
DB_FIREBIRD_PASSWORD=password
DB_FIREBIRD_CHARSET=ISO-8859-2
DB_FIREBIRD_ROLE=''

```

### Usage

[](#usage)

#### Eloquent as model

[](#eloquent-as-model)

To override your default database connection define `$connection` name in your Eloquent Model

```
/**
 * The connection name for the model.
 *
 * @var string
 */
protected $connection = 'myFirebirdConnection';
```

After defining connection name you can use it in normal way as you use Eloquent:

```
$user = User::where('id', 1)->get();

$users = User::all();
```

#### DB Query

[](#db-query)

Each time you have to define connecion name (if it isn't your default one), for example:

```
$sql = 'SELECT * FROM USERS WHERE id = :id';
$bindings = ['id' => 1];
$user = DB::connection('myFirebirdConnection')->select($sql, $bindings);

$users = DB::connection('myFirebirdConnection')->table('USERS')->select('*')->get();
```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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://www.gravatar.com/avatar/ec38df3309522c064c3ca1bcd25cbc0c77adfeb36f46e24afd04cdf9076e96b6?d=identicon)[sozinov](/maintainers/sozinov)

---

Top Contributors

[![sozinov](https://avatars.githubusercontent.com/u/16487170?v=4)](https://github.com/sozinov "sozinov (12 commits)")

### Embed Badge

![Health badge](/badges/sozinov-laravel-6-firebird-role/health.svg)

```
[![Health](https://phpackages.com/badges/sozinov-laravel-6-firebird-role/health.svg)](https://phpackages.com/packages/sozinov-laravel-6-firebird-role)
```

PHPackages © 2026

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