mirror of
https://github.com/retailcrm/graphql-php.git
synced 2025-02-06 07:49:24 +03:00
Adrien Crivelli
178b179db3
Drop support non pre-parsed PSR-7 request body
This revert #202 (commit 9d37f4c) because trying to parse PSR-7 request was a mistake. The whole point of PSR-7 is to allow for interoperability and be able to use specialized libs for body parsing (amongst many other things). Trying to parse ourselves would be opening a can of worm if/when other content types have to be supported. It is more correct and future safe to require that the body is parsed before being passed to GraphQL.
graphql-php
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 on the Documentation site as well as in the docs folder of the distribution.
If you don't know what GraphQL is, visit this official website by the Facebook engineering team.
Examples
There are several ready examples in the examples folder of the distribution with specific README file per example.
Contribute
Please refer to CONTRIBUTING.md for information on how to contribute.
Old README.md
Here is a link to the old README.md.
Keep in mind that it relates to the version 0.9.x. It may contain outdated information for newer versions (even though we try to preserve backwards compatibility).
Languages
PHP
100%