phpstan / phpstan-dibi
Dibi class reflection extension for PHPStan
Package info
github.com/phpstan/phpstan-dibi
Type:phpstan-extension
pkg:composer/phpstan/phpstan-dibi
2.0.0
2024-10-04 12:01 UTC
Requires
- php: ^7.4 || ^8.0
- phpstan/phpstan: ^2.0
Requires (Dev)
- dibi/dibi: ~4.0
- php-parallel-lint/php-parallel-lint: ^1.2
- phpstan/phpstan-phpunit: ^2.0
- phpstan/phpstan-strict-rules: ^2.0
- phpunit/phpunit: ^9.6
Conflicts
- dibi/dibi: <3.0
This package is auto-updated.
Last update: 2026-05-29 21:05:30 UTC
README
This extension provides the following features:
- Defines dynamic methods on
Dibi\Fluentinstances. They are called to build an SQL query dynamically. Each dynamic method accepts variadic arguments and returnsDibi\Fluentfor method chaining. - Registers
Dibi\Rowas a universal object crate, allowing dynamic property access without errors.
Installation
To use this extension, require it in Composer:
composer require --dev phpstan/phpstan-dibi
If you also install phpstan/extension-installer then you're all set!
Manual installation
If you don't want to use phpstan/extension-installer, include extension.neon in your project's PHPStan config:
includes: - vendor/phpstan/phpstan-dibi/extension.neon