webonyx/graphql-php

A PHP port of GraphQL reference implementation

Package info

github.com/webonyx/graphql-php

pkg:composer/webonyx/graphql-php

Fund package maintenance!

spawnia

Open Collective

Statistics

Installs: 82 510 010

Dependents: 349

Suggesters: 16

Stars: 4 717

Open Issues: 58

v15.33.1 2026-06-17 06:05 UTC

Requires

Suggests

  • amphp/amp: To leverage async resolving on AMPHP platform (v3 with AmpFutureAdapter, v2 with AmpPromiseAdapter)
  • amphp/http-server: To leverage async resolving with webserver on AMPHP platform
  • psr/http-message: To use standard GraphQL server
  • react/promise: To leverage async resolving on React PHP platform

Provides

None

Conflicts

None

Replaces

None

MIT e0f40ce40a527ee27413cceced4825aacbc7de5b

apigraphql

This package is auto-updated.

Last update: 2026-06-17 06:13:15 UTC


README

This repository is planned to move to a new home. See the announcement for details and to share feedback.

This is a PHP implementation of the GraphQL specification based on the reference implementation in JavaScript.

Fully compliant with the October 2021 GraphQL specification. September 2025 specification compliance is in progress.

Sponsors

If you make money using this project, please consider sponsoring its maintainer on GitHub Sponsors or the project on OpenCollective.

👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image
👁 Image

👁 Image

Installation

Via composer:

composer require webonyx/graphql-php

Documentation

Full documentation is available at https://webonyx.github.io/graphql-php or in the docs directory.

Examples

There are several ready examples in the examples directory, with a specific README file per example.

Versioning

This project follows Semantic Versioning 2.0.0.

Elements that belong to the public API of this package are marked with the @api PHPDoc tag. Constants included in the class-reference docs are also part of the public API. Those elements are thus guaranteed to be stable within major versions. All other elements are not part of this backwards compatibility guarantee and may change between minor or patch versions.

The most recent version is actively developed on master. Older versions are generally no longer supported, although exceptions may be made for sponsors.