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

ActiveLibrary[API Development](/categories/api)

webonyx/graphql-php
===================

A PHP port of GraphQL reference implementation

v15.31.2(1mo ago)4.7k77.3M—4.7%576[38 issues](https://github.com/webonyx/graphql-php/issues)[21 PRs](https://github.com/webonyx/graphql-php/pulls)20MITPHPPHP ^7.4 || ^8CI passing

Since Aug 10Pushed today105 watchersCompare

[ Source](https://github.com/webonyx/graphql-php)[ Packagist](https://packagist.org/packages/webonyx/graphql-php)[ Docs](https://github.com/webonyx/graphql-php)[ GitHub Sponsors](https://github.com/spawnia)[ Fund](https://opencollective.com/webonyx-graphql-php)[ RSS](/packages/webonyx-graphql-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (42)Versions (204)Used By (20)

graphql-php
===========

[](#graphql-php)

**This repository is planned to move to a new home.****See the [announcement](https://github.com/webonyx/graphql-php/discussions/1912) for details and to share feedback.**

This is a PHP implementation of the [GraphQL](https://graphql.org) [specification](https://github.com/graphql/graphql-spec)based on the [reference implementation in JavaScript](https://github.com/graphql/graphql-js).

Sponsors
--------

[](#sponsors)

If you make money using this project, please consider sponsoring [its maintainer on GitHub Sponsors](https://github.com/sponsors/spawnia) or [the project on OpenCollective](https://opencollective.com/webonyx-graphql-php).

[![](https://camo.githubusercontent.com/727e5eb69d54f850f53058c51cad2ba5b6b86d8c42fb04dacc8c6694c3c467d7/68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f7765626f6e79782d6772617068716c2d7068702f73706f6e736f722f302f6176617461722e737667)](https://opencollective.com/webonyx-graphql-php/sponsor/0/website)[![](https://camo.githubusercontent.com/6b3eb038515aa4801dc258426e492829ca8c5c0a0e5ed58115efd78ec78f43f3/68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f7765626f6e79782d6772617068716c2d7068702f73706f6e736f722f312f6176617461722e737667)](https://opencollective.com/webonyx-graphql-php/sponsor/1/website)[![](https://camo.githubusercontent.com/6e2604388b4039891ead3d4e48300542f415d0978c2ee45e5cb424e2782dd81b/68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f7765626f6e79782d6772617068716c2d7068702f73706f6e736f722f322f6176617461722e737667)](https://opencollective.com/webonyx-graphql-php/sponsor/2/website)[![](https://camo.githubusercontent.com/38a7349f05938d4c5aa84fb8c51618fd8d7ac9e0f0333c5f71416728536c8975/68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f7765626f6e79782d6772617068716c2d7068702f73706f6e736f722f332f6176617461722e737667)](https://opencollective.com/webonyx-graphql-php/sponsor/3/website)[![](https://camo.githubusercontent.com/9e2bc0c10fa9e1e630f1d0d59c6969ae19d07164309f6f99cee1b0bcbbdaeb4a/68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f7765626f6e79782d6772617068716c2d7068702f73706f6e736f722f342f6176617461722e737667)](https://opencollective.com/webonyx-graphql-php/sponsor/4/website)[![](https://camo.githubusercontent.com/1f0f9f1284df69e21f673194705e726e73821b0d1639c31b73c8a5028fd68705/68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f7765626f6e79782d6772617068716c2d7068702f73706f6e736f722f352f6176617461722e737667)](https://opencollective.com/webonyx-graphql-php/sponsor/5/website)[![](https://camo.githubusercontent.com/2161015b06f379e813515d7339f2700cb6fb9104b10f0eae9e865c99821ed1d3/68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f7765626f6e79782d6772617068716c2d7068702f73706f6e736f722f362f6176617461722e737667)](https://opencollective.com/webonyx-graphql-php/sponsor/6/website)[![](https://camo.githubusercontent.com/7168dafe971bc0ef90a97a94b2333ff10db2d36e5669a3495296fd5e7c8ea17f/68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f7765626f6e79782d6772617068716c2d7068702f73706f6e736f722f372f6176617461722e737667)](https://opencollective.com/webonyx-graphql-php/sponsor/7/website)[![](https://camo.githubusercontent.com/b82c3a15fc626f1967a3972f59385ab878a77738e87dd18df7e716936edfdc0c/68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f7765626f6e79782d6772617068716c2d7068702f73706f6e736f722f382f6176617461722e737667)](https://opencollective.com/webonyx-graphql-php/sponsor/8/website)[![](https://camo.githubusercontent.com/0906e0e5cbb58644b047da65c2bc3575420bdc240752c1a20f3016911a989c40/68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f7765626f6e79782d6772617068716c2d7068702f73706f6e736f722f392f6176617461722e737667)](https://opencollective.com/webonyx-graphql-php/sponsor/9/website)

[![](https://camo.githubusercontent.com/497bde98127a74944b0c459904acad4ddf1e60fc4bd53f4b1d89c33e97bdb72b/68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f7765626f6e79782d6772617068716c2d7068702f6261636b6572732e7376673f77696474683d383930)](https://opencollective.com/webonyx-graphql-php#backers)

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

[](#installation)

Via composer:

```
composer require webonyx/graphql-php
```

Documentation
-------------

[](#documentation)

Full documentation is available at or in the [docs](docs) directory.

Examples
--------

[](#examples)

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

Versioning
----------

[](#versioning)

This project follows [Semantic Versioning 2.0.0](https://semver.org/spec/v2.0.0.html).

Elements that belong to the public API of this package are marked with the `@api` PHPDoc tag. Constants included in the [class-reference docs](https://webonyx.github.io/graphql-php/class-reference) 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`](https://github.com/webonyx/graphql-php/tree/master). Older versions are generally no longer supported, although exceptions may be made for [sponsors](#sponsors).

###  Health Score

83

—

ExcellentBetter than 100% of packages

Maintenance95

Actively maintained with recent releases

Popularity83

Widely adopted with strong download metrics

Community60

Healthy contributor diversity

Maturity83

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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.

###  Release Activity

Cadence

Every ~21 days

Recently: every ~13 days

Total

186

Last Release

56d ago

Major Versions

v0.13.8 → v14.0.02020-06-21

0.13.x-dev → v14.0.12020-07-02

v14.11.8 → v15.0.0-alpha.12022-10-15

v14.11.9 → v15.0.02023-01-06

v14.11.10 → v15.5.22023-07-24

PHP version history (8 changes)v0.1PHP &gt;=5.4,&lt;8.0-DEV

v0.10.0-rc1PHP &gt;=5.5,&lt;8.0-DEV

v0.12.0PHP &gt;=5.6

v0.13.0PHP ^7.1

v0.13.1PHP ^7.1||^8.0

14.10.0PHP ^7.1 || ^8.0

v14.11.4PHP ^7.1 || ^8

v15.0.0-alpha.1PHP ^7.4 || ^8

### Community

Maintainers

![](https://www.gravatar.com/avatar/72cca7a8870d66584cfb588e50b51e0706bcafd31aecccb31a4e15156d7d87fe?d=identicon)[vladar](/maintainers/vladar)

![](https://www.gravatar.com/avatar/2ff5d1af2c0f601f7ed7e75e15be0aa4c062149b57fd5aace4e44cc37b8b7a40?d=identicon)[spawnia](/maintainers/spawnia)

---

Top Contributors

[![vladar](https://avatars.githubusercontent.com/u/115628?v=4)](https://github.com/vladar "vladar (736 commits)")[![spawnia](https://avatars.githubusercontent.com/u/12158000?v=4)](https://github.com/spawnia "spawnia (562 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (318 commits)")[![simPod](https://avatars.githubusercontent.com/u/327717?v=4)](https://github.com/simPod "simPod (197 commits)")[![danez](https://avatars.githubusercontent.com/u/231804?v=4)](https://github.com/danez "danez (59 commits)")[![ruudk](https://avatars.githubusercontent.com/u/104180?v=4)](https://github.com/ruudk "ruudk (42 commits)")[![shmax](https://avatars.githubusercontent.com/u/773172?v=4)](https://github.com/shmax "shmax (28 commits)")[![vhenzl](https://avatars.githubusercontent.com/u/243381?v=4)](https://github.com/vhenzl "vhenzl (27 commits)")[![Torsten85](https://avatars.githubusercontent.com/u/531361?v=4)](https://github.com/Torsten85 "Torsten85 (17 commits)")[![bpteam](https://avatars.githubusercontent.com/u/1714419?v=4)](https://github.com/bpteam "bpteam (12 commits)")[![enumag](https://avatars.githubusercontent.com/u/539462?v=4)](https://github.com/enumag "enumag (10 commits)")[![andheiberg](https://avatars.githubusercontent.com/u/820962?v=4)](https://github.com/andheiberg "andheiberg (8 commits)")[![chriszarate](https://avatars.githubusercontent.com/u/739304?v=4)](https://github.com/chriszarate "chriszarate (8 commits)")[![JanBukva](https://avatars.githubusercontent.com/u/7108035?v=4)](https://github.com/JanBukva "JanBukva (8 commits)")[![Warxcell](https://avatars.githubusercontent.com/u/3340882?v=4)](https://github.com/Warxcell "Warxcell (7 commits)")[![PowerKiKi](https://avatars.githubusercontent.com/u/72603?v=4)](https://github.com/PowerKiKi "PowerKiKi (6 commits)")[![decebal](https://avatars.githubusercontent.com/u/352761?v=4)](https://github.com/decebal "decebal (6 commits)")[![mfn](https://avatars.githubusercontent.com/u/87493?v=4)](https://github.com/mfn "mfn (5 commits)")[![mcg-web](https://avatars.githubusercontent.com/u/1496283?v=4)](https://github.com/mcg-web "mcg-web (5 commits)")[![urbanc](https://avatars.githubusercontent.com/u/1261854?v=4)](https://github.com/urbanc "urbanc (4 commits)")

---

Tags

apiapi-managementgraphqlgraphql-phpphprest-replacementapigraphql

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/webonyx-graphql-php/health.svg)

```
[![Health](https://phpackages.com/badges/webonyx-graphql-php/health.svg)](https://phpackages.com/packages/webonyx-graphql-php)
```

###  Alternatives

[wp-graphql/wp-graphql-woocommerce

WooCommerce bindings for WPGraphQL

69146.8k](/packages/wp-graphql-wp-graphql-woocommerce)[alexaandrov/laravel-graphql-client

GraphQL client for laravel/lumen

125.6k](/packages/alexaandrov-laravel-graphql-client)

PHPackages © 2026

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