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

ActiveLibrary[API Development](/categories/api)

joonlabs/php-graphql
====================

A PHP implementation of the GraphQL specifications

v2.0.11(2y ago)545.0k—0%3MITPHPPHP &gt;=8.0

Since May 17Pushed 2y ago5 watchersCompare

[ Source](https://github.com/joonlabs/php-graphql)[ Packagist](https://packagist.org/packages/joonlabs/php-graphql)[ Docs](https://github.com/joonlabs/php-graphql)[ RSS](/packages/joonlabs-php-graphql/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (2)Versions (27)Used By (0)

 [![index.js logo](https://camo.githubusercontent.com/1bcc2b1fda3d05b8065bafa5775c88b6f0e968b124cab82550f2b81c195b09f1/68747470733a2f2f6a6f6f6e6c6162732e636f6d2f7068702d6772617068716c2f6c6f676f2e737667)](https://camo.githubusercontent.com/1bcc2b1fda3d05b8065bafa5775c88b6f0e968b124cab82550f2b81c195b09f1/68747470733a2f2f6a6f6f6e6c6162732e636f6d2f7068702d6772617068716c2f6c6f676f2e737667)

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

[](#php-graphql)

[![CI](https://github.com/joonlabs/php-graphql/actions/workflows/php.yml/badge.svg)](https://github.com/joonlabs/php-graphql/actions/workflows/php.yml)[![Latest Stable Version](https://camo.githubusercontent.com/a377ee1e683e6eb20a75f8cd1b9bbfedbe82e301015f446a83c7808c3287bd9b/68747470733a2f2f706f7365722e707567782e6f72672f6a6f6f6e6c6162732f7068702d6772617068716c2f76)](//packagist.org/packages/joonlabs/php-graphql)[![License](https://camo.githubusercontent.com/63e9ee80147da612c577dcf89477d1f23331bdda272ef9955ed979f0369a802d/68747470733a2f2f706f7365722e707567782e6f72672f6a6f6f6e6c6162732f7068702d6772617068716c2f6c6963656e7365)](//packagist.org/packages/joonlabs/php-graphql)

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

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

[](#installation)

Via **composer:**

```
composer require joonlabs/php-graphql
```

Via **git submodule:**

```
git clone https://github.com/joonlabs/php-graphql.git
```

For more information, see the [doc pages](https://joonlabs.github.io/php-graphql/docs/getting-started/)

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

[](#documentation)

The library's documentation is available at  or in the [docs](https://github.com/joonlabs/php-graphql/tree/master/docs) folder.

Examples
--------

[](#examples)

Examples can be found in the [examples](https://github.com/joonlabs/php-graphql/tree/master/examples) directory and are additionally discussed in the [documentation](https://joonlabs.github.io/php-graphql/).

Motivation
----------

[](#motivation)

This project was developed out of internal needs in the company. We decided to go with an own implementation to stay in control of performance critical parts, implement cache systems and support file upload from scratch. Also this library does not use arrays but explicit parameters for initialization and configuration of types, fields and other objects. Thanks to features like named arguments which were added by PHP 8, this library achieves a high readability. As nice sideeffect this library seems to outperform the currently most used library [webonyx/graphql-php](https://github.com/webonyx/graphql-php) in terms of speed in many use cases (please see  for reference).

Backers and sponsors
--------------------

[](#backers-and-sponsors)

[![index.js logo](https://camo.githubusercontent.com/87ff3a9fa6f9e04636c8b7dd70b9cb62ab9725dfc9fb4ad2c14ad1504cf5287d/68747470733a2f2f6a6f6f6e6c6162732e636f6d2f7068702d6772617068716c2f6261636b6572732f6a6f6f6e2e706e67)](https://camo.githubusercontent.com/87ff3a9fa6f9e04636c8b7dd70b9cb62ab9725dfc9fb4ad2c14ad1504cf5287d/68747470733a2f2f6a6f6f6e6c6162732e636f6d2f7068702d6772617068716c2f6261636b6572732f6a6f6f6e2e706e67)
see [joonlabs.com](https://joonlabs.com)

[![index.js logo](https://camo.githubusercontent.com/ce1985999c527b67ac2bc5fe80ae789fca6096d3a7e6d2645d2d577ba8ab495d/68747470733a2f2f6a6f6f6e6c6162732e636f6d2f7068702d6772617068716c2f6261636b6572732f6c656166782e706e67)](https://camo.githubusercontent.com/ce1985999c527b67ac2bc5fe80ae789fca6096d3a7e6d2645d2d577ba8ab495d/68747470733a2f2f6a6f6f6e6c6162732e636f6d2f7068702d6772617068716c2f6261636b6572732f6c656166782e706e67)
see [leafx.de](https://leafx.de)

License
-------

[](#license)

Fore more infromation regarding the license, see the [LICENSE](https://github.com/joonlabs/php-graphql/blob/master/LICENSE) file.

###  Health Score

36

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity67

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~28 days

Recently: every ~123 days

Total

26

Last Release

1061d ago

Major Versions

v1.1.3 → v2.0.02021-08-23

PHP version history (3 changes)v1.0.0PHP &gt;=7.2

v1.0.8PHP &gt;=7.3

v2.0.0PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/f4fd21bba40a33d85719656cd753e0d0e2d5d7aa518d9d2b483142dc86c81242?d=identicon)[joonlabs](/maintainers/joonlabs)

---

Top Contributors

[![joonlabs](https://avatars.githubusercontent.com/u/52662462?v=4)](https://github.com/joonlabs "joonlabs (104 commits)")

---

Tags

apiapi-managementgraphqlphpphp-graphqlrest-replacementapigraphql

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[ivome/graphql-relay-php

A PHP port of GraphQL Relay reference implementation

271619.7k5](/packages/ivome-graphql-relay-php)[wp-graphql/wp-graphql-woocommerce

WooCommerce bindings for WPGraphQL

69044.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)
