satwareag / php-firebird-stubs
IDE and static analysis stubs for the php-firebird extension
Installs: 149
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
pkg:composer/satwareag/php-firebird-stubs
Requires
- php: >=8.1
Suggests
- satwareag/php-firebird: The actual php-firebird extension for runtime use
This package is auto-updated.
Last update: 2026-01-07 09:06:07 UTC
README
IDE autocompletion and static analysis stubs for the php-firebird extension.
Installation
composer require --dev satwareag/php-firebird-stubs
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
firebird-stubs.php- Constants and function declarations for allfbird_*functionsfirebird-classes.php- Extension-provided classes (Firebird\Event,Firebird\Exception)
Usage
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
Add to your psalm.xml:
<stubs> <file name="vendor/satwareag/php-firebird-stubs/firebird-stubs.php"/> <file name="vendor/satwareag/php-firebird-stubs/firebird-classes.php"/> </stubs>
IDE Configuration
Most IDEs will automatically pick up the stubs via Composer autoloading. No additional configuration is typically required.
Version Compatibility
| Stubs Version | Extension Version | PHP Version |
|---|---|---|
| 7.0.x | 7.0.x | ≥8.1 |
Related Packages
- php-firebird - The actual C extension providing Firebird database connectivity
License
PHP License 3.01 - Same as PHP itself.
Author
satware AG - https://satware.com