PHPackages                             vojtech-dobes/phpstan-php-graphql-server-nette-integration - 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-nette-integration

ActiveLibrary[API Development](/categories/api)

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

03PHPCI passing

Since Jun 9Pushed 1y agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#phpstan-extension-for-php-graphql-server-integration-with-nette-framework)

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

This extension is recommended if you use PHPStan with [`vojtech-dobes/phpstan-php-graphql-server`](https://github.com/vojtech-dobes/phpstan-php-graphql-server) extension. It gives you prepared `Adapter` implementation for easy integration with your GraphQL service setup.

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

[](#installation)

To install the latest version, run the following command:

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

```

### Setup

[](#setup)

Using this extension you can tell PHPStan about your GraphQL service in two ways:

- either you can directly use services registered in your DI container
- or you can point the extension at NEON configuration file that holds all necessary information in static form

The latter way is less convenient but won't prevent you from using PHPStan if your DI container can't temporarily compile (which is likely to happen during active development).

#### Method 1: DI container

[](#method-1-di-container)

Update your `phpstan.neon` like this:

```
includes:
  - vendor/vojtech-dobes/phpstan-php-graphql-server-nette-integration/extension_di_container.neon

graphqlDIContainer:
  dic: [Bootstrap, createContainerForPHPStan]
  extensionMap:
    %rootDir%/../../../src/schema.graphqls: graphql
```

Options:

- **`dic`**

    Expects callback that will return instance of your `Nette\DI\Container` from which it can extract necessary GraphQL services.
- **`extensionMap`**

    Expects map of schema file paths to extension name you use for that particular schema in your configuration. For example if your application configuration looks like this:

    ```
    extensions:
      my_graphql: Vojtechdobes\GraphQL\Integrations\Nette\Extension

    my_graphql:
      schemaPath: %rootDir%/src/my_schema.graphqls
    ```

    Then your `phpstan.neon` should contain:

    ```
    graphqlDIContainer:
      extensionMap:
        %rootDir%/../../../src/my_schema.graphqls: my_graphql
    ```

#### Method 2: static configuration

[](#method-2-static-configuration)

*WIP*

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity3

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 (13 commits)")

---

Tags

cigraphqlintegrationnettephpphpstanphpstan-rulesstatic-analysisstatic-code-analysis

### Embed Badge

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

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

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

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

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

PHPackages © 2026

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