PHPackages                             satwareag/php-firebird-stubs - 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. satwareag/php-firebird-stubs

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

satwareag/php-firebird-stubs
============================

IDE and static analysis stubs for the php-firebird extension

v10.0.0(1mo ago)02.4k[1 issues](https://github.com/satwareAG/php-firebird-stubs/issues)1PHP-3.01PHPPHP &gt;=8.2

Since Jan 3Pushed 1mo agoCompare

[ Source](https://github.com/satwareAG/php-firebird-stubs)[ Packagist](https://packagist.org/packages/satwareag/php-firebird-stubs)[ Docs](https://github.com/satwareAG/php-firebird)[ RSS](/packages/satwareag-php-firebird-stubs/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (38)Used By (1)

PHP Firebird Extension Stubs
============================

[](#php-firebird-extension-stubs)

[![PHP Version](https://camo.githubusercontent.com/04744bae0a61d2ffe29c26f07a9612eae20445fc6feaeb77b3af1f0e9be6447c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e312d3838393242462e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/f7731ef78dd35e0d81bfa6a54ff02781e72821457dc7292835332bf0852543a6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d5048502d2d332e30312d626c75652e737667)](LICENSE)

IDE autocompletion and static analysis stubs for the [php-firebird](https://github.com/satwareAG/php-firebird) extension.

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

[](#installation)

```
composer require --dev satwareag/php-firebird-stubs
```

Purpose
-------

[](#purpose)

This package provides stub files that enable:

- **IDE Autocompletion**: Full function signatures, parameter hints, and return types for PhpStorm, VSCode (Intelephense), and other IDEs
- **Static Analysis**: PHPStan and Psalm support for analyzing code that uses the php-firebird extension
- **Documentation**: Inline PHPDoc comments describing each function and constant

What's Included
---------------

[](#whats-included)

- `firebird-stubs.php` - Constants and function declarations for all `fbird_*` functions
- `firebird-classes.php` - Extension-provided classes (`Firebird\Event`, `Firebird\Exception`)

Usage
-----

[](#usage)

### PHPStan

[](#phpstan)

The stubs are automatically loaded via Composer's autoload. If you need to reference them explicitly in your `phpstan.neon`:

```
parameters:
    scanFiles:
        - vendor/satwareag/php-firebird-stubs/firebird-stubs.php
        - vendor/satwareag/php-firebird-stubs/firebird-classes.php
```

### Psalm

[](#psalm)

Add to your `psalm.xml`:

```

```

### IDE Configuration

[](#ide-configuration)

Most IDEs will automatically pick up the stubs via Composer autoloading. No additional configuration is typically required.

Included Functions (v7.0.0)
---------------------------

[](#included-functions-v700)

All `fbird_*` functions are stubbed, including v7.0.0 additions:

FunctionDescription`fbird_query_params_tx($link, $trans, $sql, ?$params)`Explicit link + transaction + params (Doctrine DBAL)`fbird_execute_statement($stmt)`Execute a prepared statement resource`fbird_execute_query($link, $sql, ...$params)`Execute SQL with optional params`fbird_execute_auto($link, $sql, ...$params)`Auto-commit execution helper`fbird_set_exception_mode(int $mode)`Set SILENT/THROW error mode`fbird_get_exception_mode()`Get current error mode`fbird_trans_start($link, array $options)`Full TPB transaction builder`fbird_savepoint($trans, string $name)`Create named savepoint`fbird_rollback_savepoint($trans, string $name)`Rollback to savepoint`fbird_release_savepoint($trans, string $name)`Release savepoint`fbird_connection_info($link)`Connection metadata`fbird_trans_info($trans)`Transaction state info`fbird_blob_seek($blob, int $offset, int $whence)`Seekable BLOB access`fbird_batch_create($stmt, $trans)`Create batch (FB 4.0+)`fbird_batch_add($batch, ...$params)`Add row to batch`fbird_batch_execute($batch)`Execute batch`fbird_batch_cancel($batch)`Cancel batch`fbird_escape_string(string $str)`Escape string for SQLAll classic `fbird_connect`, `fbird_query`, `fbird_prepare`, `fbird_execute`, `fbird_fetch_*`, `fbird_trans`, `fbird_commit`, `fbird_rollback`, `fbird_blob_*`, `fbird_service_*`, and event functions are also stubbed.

Version Compatibility
---------------------

[](#version-compatibility)

Stubs VersionExtension VersionPHP Version7.0.x7.0.x≥8.1Related Packages
----------------

[](#related-packages)

- [php-firebird](https://github.com/satwareAG/php-firebird) - The actual C extension providing Firebird database connectivity

License
-------

[](#license)

PHP License 3.01 - Same as PHP itself.

Author
------

[](#author)

satware AG -

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance89

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.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 ~2 days

Total

37

Last Release

55d ago

Major Versions

v7.3.5-RC7 → v9.0.02026-03-22

v8.3.0 → v10.0.02026-03-24

PHP version history (2 changes)v7.0.0-rc.40PHP &gt;=8.1

v7.3.6-rc1PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/9fd23bbd806ea092ef8caa3276cbca0395689c9413cf7a79a300d3391adeda8e?d=identicon)[satwareAG-ironMike](/maintainers/satwareAG-ironMike)

---

Top Contributors

[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (15 commits)")[![jane-alesi](https://avatars.githubusercontent.com/u/193043945?v=4)](https://github.com/jane-alesi "jane-alesi (1 commits)")

---

Tags

composer-packagefirebirdide-helperphpphpstanstubsPHPStanidestatic analysisstubsdatabasepsalmfirebirdfbird

### Embed Badge

![Health badge](/badges/satwareag-php-firebird-stubs/health.svg)

```
[![Health](https://phpackages.com/badges/satwareag-php-firebird-stubs/health.svg)](https://phpackages.com/packages/satwareag-php-firebird-stubs)
```

###  Alternatives

[weirdan/doctrine-psalm-plugin

Stubs to let Psalm understand Doctrine better

876.9M50](/packages/weirdan-doctrine-psalm-plugin)[chillerlan/php-database

An extensible database wrapper and query builder.

431.2k2](/packages/chillerlan-php-database)[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)
