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)16912.5k—7.6%11[2 issues](https://github.com/phpstan/phpstan-dibi/issues)[2 PRs](https://github.com/phpstan/phpstan-dibi/pulls)7MITPHPPHP ^7.4 || ^8.0CI passing

Since Jul 17Pushed 1mo 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 1mo ago

READMEChangelog (10)Dependencies (6)Versions (30)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

58

—

FairBetter than 98% of packages

Maintenance64

Regular maintenance activity

Popularity47

Moderate usage in the ecosystem

Community27

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 65.6% 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 ~167 days

Recently: every ~375 days

Total

22

Last Release

81d 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://www.gravatar.com/avatar/258cf2d2422f7e9ac5f7e1bb7a331f3fb717a11e51de7a3de2d6025507bd63cf?d=identicon)[ondrejmirtes](/maintainers/ondrejmirtes)

---

Top Contributors

[![ondrejmirtes](https://avatars.githubusercontent.com/u/104888?v=4)](https://github.com/ondrejmirtes "ondrejmirtes (82 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (18 commits)")[![renovate-bot](https://avatars.githubusercontent.com/u/25180681?v=4)](https://github.com/renovate-bot "renovate-bot (10 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)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 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)")[![staabm](https://avatars.githubusercontent.com/u/120441?v=4)](https://github.com/staabm "staabm (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)")

---

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.4k43.5M5.2k](/packages/larastan-larastan)[phpstan/phpstan-symfony

Symfony Framework extensions and rules for PHPStan

78768.9M1.5k](/packages/phpstan-phpstan-symfony)[phpstan/phpstan-doctrine

Doctrine extensions for PHPStan

66766.6M1.1k](/packages/phpstan-phpstan-doctrine)[phpat/phpat

PHP Architecture Tester

1.2k3.5M32](/packages/phpat-phpat)[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.

33320.0M375](/packages/spaze-phpstan-disallowed-calls)[mglaman/phpstan-drupal

Drupal extension and rules for PHPStan

20829.0M124](/packages/mglaman-phpstan-drupal)

PHPackages © 2026

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