phpstan/phpstan-dibi

Dibi class reflection extension for PHPStan

Installs: 904 733

Dependents: 8

Suggesters: 0

Security: 0

Stars: 16

Watchers: 1

Forks: 10

Open Issues: 3

Type:phpstan-extension

pkg:composer/phpstan/phpstan-dibi

2.0.0 2024-10-04 12:01 UTC

README

Build Latest Stable Version License

This extension provides the following features:

  • Defines dynamic methods on Dibi\Fluent instances. They are called to build an SQL query dynamically. Each dynamic method accepts variadic arguments and returns Dibi\Fluent for method chaining.
  • Registers Dibi\Row as 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