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 9mo 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 today

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

18

—

LowBetter than 10% of packages

Maintenance41

Moderate activity, may be stable

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

[google/apiclient

Client library for Google APIs

9.8k186.9M875](/packages/google-apiclient)[stripe/stripe-php

Stripe PHP Library

4.0k139.3M411](/packages/stripe-stripe-php)[webonyx/graphql-php

A PHP port of GraphQL reference implementation

4.7k75.4M270](/packages/webonyx-graphql-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k90.6M248](/packages/twilio-sdk)[friendsofsymfony/jsrouting-bundle

A pretty nice way to expose your Symfony routing to client applications.

1.5k52.7M205](/packages/friendsofsymfony-jsrouting-bundle)[knplabs/github-api

GitHub API v3 client

2.2k15.3M170](/packages/knplabs-github-api)

PHPackages © 2026

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