PHPackages                             vkrapotkin/laravel-firebird5 - 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. vkrapotkin/laravel-firebird5

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

vkrapotkin/laravel-firebird5
============================

Laravel 13 database driver package for Firebird SQL 5 via PDO\_FIREBIRD.

v0.1.2(yesterday)01MITPHPPHP ^8.3

Since Mar 20Pushed yesterdayCompare

[ Source](https://github.com/vkrapotkin/laravel-firebird5)[ Packagist](https://packagist.org/packages/vkrapotkin/laravel-firebird5)[ Docs](https://github.com/vkrapotkin/laravel-firebird5)[ RSS](/packages/vkrapotkin-laravel-firebird5/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (4)Versions (4)Used By (0)

vkrapotkin/laravel-firebird5
============================

[](#vkrapotkinlaravel-firebird5)

Independent Laravel package with a Firebird SQL 5 driver for Laravel 13.

Features
--------

[](#features)

- `firebird` connection driver for Laravel 13 with package auto-discovery
- PDO Firebird connector with DSN builder for local and host-based database paths
- Query support for pagination, `insertGetId()`, `insertUsing()`, `DELETE ... ROWS`, single-row `upsert`, `union all`, `lockForUpdate()`, and `sharedLock()`
- Schema support for create, alter, `change()`, `renameColumn()`, `dropColumn()`, indexes, unique constraints, foreign keys, views, and bulk dropping of tables/views
- Schema introspection for tables, views, columns, indexes, foreign keys, and domains via `getTypes()`
- Firebird-aware transaction handling for top-level Laravel transaction blocks

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

[](#requirements)

- PHP 8.3+
- Laravel 13
- `ext-pdo`
- `pdo_firebird` enabled in PHP
- Firebird SQL 5

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

[](#installation)

```
composer require vkrapotkin/laravel-firebird5
```

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

[](#configuration)

Add a Firebird connection to `config/database.php`:

```
'connections' => [
    'firebird' => [
        'driver' => 'firebird',
        'host' => env('DB_HOST', '127.0.0.1'),
        'port' => env('DB_PORT', 3050),
        'database' => env('DB_DATABASE', database_path('database.fdb')),
        'username' => env('DB_USERNAME', 'sysdba'),
        'password' => env('DB_PASSWORD', 'masterkey'),
        'charset' => env('DB_CHARSET', 'UTF8'),
        'role' => env('DB_ROLE'),
        'dialect' => env('DB_DIALECT', 3),
        'prefix' => '',
        'isolation_level' => env('DB_ISOLATION_LEVEL'),
    ],
],
```

Example `.env`:

```
DB_CONNECTION=firebird
DB_HOST=127.0.0.1
DB_PORT=3050
DB_DATABASE=C:\data\app.fdb
DB_USERNAME=sysdba
DB_PASSWORD=masterkey
DB_CHARSET=UTF8
DB_DIALECT=3
```

Publishing
----------

[](#publishing)

1. Create a new GitHub repository named `laravel-firebird5` under `vkrapotkin`.
2. Push this package as the initial codebase of the new repository.
3. Sign in to Packagist and submit `https://github.com/vkrapotkin/laravel-firebird5`.
4. Ensure GitHub Services / webhooks are enabled in Packagist for automatic updates.

Notes
-----

[](#notes)

- The package targets Firebird SQL 5 syntax and PDO Firebird.
- The package namespace is `Vkrapotkin\LaravelFirebird5`.
- Query and schema behavior is covered by unit tests and real integration tests against a Firebird 5 database recreated on demand.

Known Limitations
-----------------

[](#known-limitations)

- `rename table` is not exposed because a reliable Firebird 5 + `PDO_FIREBIRD` path was not confirmed in this driver flow.
- Nested transactions are not supported through PDO; the driver supports a single top-level transaction boundary only.
- `insertOrIgnore*` paths are intentionally unsupported and follow Laravel's base runtime exception behavior.
- Savepoint behavior is not advertised until it is validated on the Firebird/PDO combination used by this package.

Transactions
------------

[](#transactions)

Firebird with `PDO_FIREBIRD` often keeps the connection inside an already active transaction. Because of that, this driver adapts Laravel transaction handling as follows:

- A top-level `beginTransaction()` / `commit()` / `rollBack()` block is supported.
- If PDO already reports an active transaction, the driver adopts that transaction instead of trying to open a second physical transaction.
- Nested transactions are not supported through PDO and will throw a `RuntimeException`.
- Schema operations are not wrapped in grammar-managed transactions.

Recommended usage:

```
DB::beginTransaction();

try {
    // write queries...
    DB::commit();
} catch (\Throwable $e) {
    DB::rollBack();
    throw $e;
}
```

Avoid opening nested transaction blocks on the same Firebird connection until savepoint behavior is explicitly implemented and validated.

Testing
-------

[](#testing)

```
composer test
vendor\bin\phpunit --testsuite Unit
vendor\bin\phpunit --testsuite Integration --display-warnings
```

###  Health Score

39

—

LowBetter than 87% of packages

Maintenance100

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

1d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f00de2483e8d35fe03facc6d7fa9995ba83f75bcd377c1519b71be8b21659115?d=identicon)[vkrapotkin](/maintainers/vkrapotkin)

---

Top Contributors

[![vkrapotkin](https://avatars.githubusercontent.com/u/5908569?v=4)](https://github.com/vkrapotkin "vkrapotkin (2 commits)")

---

Tags

laraveldatabasepdolaravel-driverfirebirdpdo\_firebirdlaravel-13firebirdsqlfirebird 5

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vkrapotkin-laravel-firebird5/health.svg)

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

###  Alternatives

[moharrum/laravel-adminer

Adminer database management tool for your Laravel application.

451.0k](/packages/moharrum-laravel-adminer)

PHPackages © 2026

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