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 11mo 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 1mo 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

Maintenance38

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity14

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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M452](/packages/google-gax)

PHPackages © 2026

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