PHPackages                             vojtech-dobes/phpstan-php-graphql-server - 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. [API Development](/categories/api)
4. /
5. vojtech-dobes/phpstan-php-graphql-server

ActiveLibrary[API Development](/categories/api)

vojtech-dobes/phpstan-php-graphql-server
========================================

096PHPCI passing

Since Jun 9Pushed 1y agoCompare

[ Source](https://github.com/vojtech-dobes/phpstan-php-graphql-server)[ Packagist](https://packagist.org/packages/vojtech-dobes/phpstan-php-graphql-server)[ RSS](/packages/vojtech-dobes-phpstan-php-graphql-server/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHPStan extension for [PHP GraphQL Server](https://github.com/vojtech-dobes/php-graphql-server)
===============================================================================================

[](#phpstan-extension-for-php-graphql-server)

[![Checks](https://github.com/vojtech-dobes/phpstan-php-graphql-server/actions/workflows/checks.yml/badge.svg?branch=master&event=push)](https://github.com/vojtech-dobes/phpstan-php-graphql-server/actions/workflows/checks.yml/badge.svg?branch=master&event=push)

This is super-convenient companion if you use [`vojtech-dobes/php-graphql-server`](https://github.com/vojtech-dobes/php-graphql-server) and [PHPStan](https://phpstan.org/). With this extension, PHPStan will be able to point out:

- mismatch between GraphQL Schema &amp; what your resolvers actually return
- mismatch between GraphQL Schema &amp; what your resolvers actually accept as arguments
- mismatch between declared parent value type and what resolver will actually receive
- supports utility resolvers like `PropertyFieldResolver` etc.

Installation
------------

[](#installation)

To install the latest version, run the following command:

```
composer require vojtech-dobes/phpstan-php-graphql-server

```

Then you can register in your `phpstan.neon`:

```
includes:
  - vendor/vojtech-dobes/phpstan-php-graphql-server/extension.neon

graphql:
  generatedDir: ""
  schemas:
    - ""
```

Next you have to tell the extension about your resolvers. If you're using framework integration, use corresponding package:

- **Integration:** `vojtech-dobes/php-graphql-server-nette-integration` (for Nette Framework)
    **Package:** [`vojtech-dobes/phpstan-php-graphql-server-nette-integration`](https://github.com/vojtech-dobes/phpstan-php-graphql-server-nette-integration)

In case of custom setup, please implement `Vojtechdobes\PHPStan\GraphQL\Adapter` interface and register like this in `phpstan.neon`:

```
services:
  - class: MyCustomAdapter
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/920689f25a0fc31b2807556eddd47203f33c4318893bce98818cf2f3e627ee8e?d=identicon)[vojtechdobes](/maintainers/vojtechdobes)

---

Top Contributors

[![vojtech-dobes](https://avatars.githubusercontent.com/u/415925?v=4)](https://github.com/vojtech-dobes "vojtech-dobes (16 commits)")

---

Tags

cigraphqlphpphpstanphpstan-rulesstatic-analysisstatic-code-analysis

### Embed Badge

![Health badge](/badges/vojtech-dobes-phpstan-php-graphql-server/health.svg)

```
[![Health](https://phpackages.com/badges/vojtech-dobes-phpstan-php-graphql-server/health.svg)](https://phpackages.com/packages/vojtech-dobes-phpstan-php-graphql-server)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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