Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/phpstan/phpstan-dibi

Dibi class reflection extension for PHPStan
https://github.com/phpstan/phpstan-dibi

dibi php php7 phpstan static-analysis static-analyzer static-code-analysis testing

Last synced: 3 months ago
JSON representation

Dibi class reflection extension for PHPStan

Awesome Lists containing this project

README

        

# 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://poser.pugx.org/phpstan/phpstan-dibi/v/stable)](https://packagist.org/packages/phpstan/phpstan-dibi)
[![License](https://poser.pugx.org/phpstan/phpstan-dibi/license)](https://packagist.org/packages/phpstan/phpstan-dibi)

* [PHPStan](https://phpstan.org/)
* [Dibi](https://dibiphp.com/)

This extension defines dynamic methods on `Dibi\Fluent` instance. They are called to build an SQL query dynamically.

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