PHPackages                             wwwision/graphql - 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. wwwision/graphql

ActiveNeos-package[API Development](/categories/api)

wwwision/graphql
================

Base package to create GraphQL endpoints with Flow

5.4.0(2y ago)2115.7k↓50%171MITPHPPHP &gt;=8.1

Since Apr 27Pushed 2y ago5 watchersCompare

[ Source](https://github.com/bwaidelich/Wwwision.GraphQL)[ Packagist](https://packagist.org/packages/wwwision/graphql)[ GitHub Sponsors](https://github.com/sponsors/bwaidelich)[ Fund](https://www.paypal.me/bwaidelich)[ RSS](/packages/wwwision-graphql/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (36)Used By (1)

Wwwision.GraphQL
================

[](#wwwisiongraphql)

Easily create GraphQL APIs with [https://www.neos.io/](Neos) and [https://flow.neos.io/](Flow).

Background
----------

[](#background)

This package is a small collection of tools that'll make it easier to provide [GraphQL](http://graphql.org/) endpoints with Neos and Flow. It is a wrapper for the [PHP port of webonyx](https://github.com/webonyx/graphql-php) that comes with automatic Schema generation from PHP code (using [wwwision/types](https://github.com/bwaidelich/types)) and an easy-to-configure [PSR-15](https://www.php-fig.org/psr/psr-15/) compatible HTTP middleware.

Usage
-----

[](#usage)

Install via [composer](https://getcomposer.org/doc/):

```
composer require wwwision/graphql

```

### Simple tutorial

[](#simple-tutorial)

Create a class containing at least one public method with a `Query` attribute (see [wwwision/types-graphql](https://github.com/bwaidelich/types-graphql) for more details):

```
// YourApi.php
