brannow / graphql-php
a Fork of the webonyx/graphql-php - A PHP port of GraphQL reference implementation
Fund package maintenance!
Open Collective
Requires
- php: ^7.4 || ^8
- ext-json: *
- ext-mbstring: *
Requires (Dev)
- amphp/amp: ^2.6
- amphp/http-server: ^2.1
- dms/phpunit-arraysubset-asserts: dev-master
- ergebnis/composer-normalize: ^2.28
- friendsofphp/php-cs-fixer: 3.65.0
- mll-lab/php-cs-fixer-config: ^5.9.2
- nyholm/psr7: ^1.5
- phpbench/phpbench: ^1.2
- phpstan/extension-installer: ^1.1
- phpstan/phpstan: 1.12.12
- phpstan/phpstan-phpunit: 1.4.1
- phpstan/phpstan-strict-rules: 1.6.1
- phpunit/phpunit: ^9.5 || ^10.5.21 || ^11
- psr/http-message: ^1 || ^2
- react/http: ^1.6
- react/promise: ^2.0 || ^3.0
- rector/rector: ^1.0
- symfony/polyfill-php81: ^1.23
- symfony/var-exporter: ^5 || ^6 || ^7
- thecodingmachine/safe: ^1.3 || ^2
Suggests
- 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
README
This is a PHP implementation of the GraphQL specification based on the reference implementation in JavaScript.
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.
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.
Security
For security related issues, email benedikt@franke.tech instead of opening a GitHub issue.
Contributors
This project exists thanks to all the people who contribute.
Backers
Sponsors
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. Become a sponsor.
License
See LICENSE.