PHPackages                             phpstan/phpstan-dibi - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. phpstan/phpstan-dibi

ActivePhpstan-extension[Testing &amp; Quality](/categories/testing)

phpstan/phpstan-dibi
====================

Dibi class reflection extension for PHPStan

2.0.0(1y ago)16941.8k—9.3%11[2 issues](https://github.com/phpstan/phpstan-dibi/issues)[1 PRs](https://github.com/phpstan/phpstan-dibi/pulls)7MITPHPPHP ^7.4 || ^8.0CI passing

Since Jul 17Pushed 1w ago1 watchersCompare

[ Source](https://github.com/phpstan/phpstan-dibi)[ Packagist](https://packagist.org/packages/phpstan/phpstan-dibi)[ RSS](/packages/phpstan-phpstan-dibi/feed)WikiDiscussions 2.0.x Synced 2d ago

READMEChangelog (10)Dependencies (6)Versions (31)Used By (7)

Dibi class reflection extension for PHPStan
===========================================

[](#dibi-class-reflection-extension-for-phpstan)

[![Build](https://github.com/phpstan/phpstan-dibi/workflows/Build/badge.svg)](https://github.com/phpstan/phpstan-dibi/actions)[![Latest Stable Version](https://camo.githubusercontent.com/f548b9f88f103d53f0d4b0b656010be7d9de561fd35f8c6bc63e0d83ca2e37f4/68747470733a2f2f706f7365722e707567782e6f72672f7068707374616e2f7068707374616e2d646962692f762f737461626c65)](https://packagist.org/packages/phpstan/phpstan-dibi)[![License](https://camo.githubusercontent.com/317800bb0aeb91a362cb8ed0b5d48ef884c46928973053b22f70deacbc40a320/68747470733a2f2f706f7365722e707567782e6f72672f7068707374616e2f7068707374616e2d646962692f6c6963656e7365)](https://packagist.org/packages/phpstan/phpstan-dibi)

- [PHPStan](https://phpstan.org/)
- [Dibi](https://dibi.nette.org/)

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
------------

[](#installation)

To use this extension, require it in [Composer](https://getcomposer.org/):

```
composer require --dev phpstan/phpstan-dibi
```

If you also install [phpstan/extension-installer](https://github.com/phpstan/extension-installer) then you're all set!

 Manual installationIf 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
```

###  Health Score

59

—

FairBetter than 98% of packages

Maintenance68

Regular maintenance activity

Popularity48

Moderate usage in the ecosystem

Community27

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 63.9% 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 ~172 days

Recently: every ~405 days

Total

22

Last Release

10d ago

Major Versions

0.12.3 → 1.0.02021-09-13

1.1.x-dev → 2.0.02024-10-04

PHP version history (5 changes)0.1PHP ~7.0

0.10PHP ~7.1

0.12.2PHP ^7.1 || ^8.0

1.0.2PHP ^7.2 || ^8.0

2.0.0PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/104888?v=4)[Ondřej Mirtes](/maintainers/ondrejmirtes)[@ondrejmirtes](https://github.com/ondrejmirtes)

---

Top Contributors

[![ondrejmirtes](https://avatars.githubusercontent.com/u/104888?v=4)](https://github.com/ondrejmirtes "ondrejmirtes (85 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (20 commits)")[![renovate-bot](https://avatars.githubusercontent.com/u/25180681?v=4)](https://github.com/renovate-bot "renovate-bot (10 commits)")[![staabm](https://avatars.githubusercontent.com/u/120441?v=4)](https://github.com/staabm "staabm (4 commits)")[![localheinz](https://avatars.githubusercontent.com/u/605483?v=4)](https://github.com/localheinz "localheinz (3 commits)")[![lookyman](https://avatars.githubusercontent.com/u/3863468?v=4)](https://github.com/lookyman "lookyman (3 commits)")[![Kocal](https://avatars.githubusercontent.com/u/2103975?v=4)](https://github.com/Kocal "Kocal (2 commits)")[![villfa](https://avatars.githubusercontent.com/u/2891564?v=4)](https://github.com/villfa "villfa (1 commits)")[![herndlm](https://avatars.githubusercontent.com/u/5738896?v=4)](https://github.com/herndlm "herndlm (1 commits)")[![step-security-bot](https://avatars.githubusercontent.com/u/89328645?v=4)](https://github.com/step-security-bot "step-security-bot (1 commits)")[![TomasVotruba](https://avatars.githubusercontent.com/u/924196?v=4)](https://github.com/TomasVotruba "TomasVotruba (1 commits)")[![uuf6429](https://avatars.githubusercontent.com/u/230049?v=4)](https://github.com/uuf6429 "uuf6429 (1 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

dibiphpphp7phpstanstatic-analysisstatic-analyzerstatic-code-analysistesting

###  Code Quality

TestsPHPUnit

Type Coverage Yes

### Embed Badge

![Health badge](/badges/phpstan-phpstan-dibi/health.svg)

```
[![Health](https://phpackages.com/badges/phpstan-phpstan-dibi/health.svg)](https://phpackages.com/packages/phpstan-phpstan-dibi)
```

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.5k55.4M8.4k](/packages/larastan-larastan)[phpstan/phpstan-symfony

Symfony Framework extensions and rules for PHPStan

79475.7M2.2k](/packages/phpstan-phpstan-symfony)[phpstan/phpstan-doctrine

Doctrine extensions for PHPStan

67272.8M1.4k](/packages/phpstan-phpstan-doctrine)[shipmonk/dead-code-detector

Dead code detector to find unused PHP code via PHPStan extension. Can automatically remove dead PHP code. Supports libraries like Symfony, Doctrine, PHPUnit etc. Detects dead cycles. Can detect dead code that is tested.

4853.5M91](/packages/shipmonk-dead-code-detector)[spaze/phpstan-disallowed-calls

PHPStan rules to detect disallowed method &amp; function calls, constant, namespace, attribute, property &amp; superglobal usages, with powerful rules to re-allow a call or a usage in places where it should be allowed.

33422.6M551](/packages/spaze-phpstan-disallowed-calls)[tomasvotruba/cognitive-complexity

PHPStan rules to measure cognitive complexity of your classes and methods

1635.6M288](/packages/tomasvotruba-cognitive-complexity)

PHPackages © 2026

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