Daniel Tschinder 48c33302a8 (Potentially Breaking) Allow serializing scalars as null.
This changes the check for null/undefined to a check for undefined to determine if scalar serialization was successful or not, allowing `null` to be returned from serialize() without indicating error.

This is potentially breaking for any existing custom scalar which returned `null` from `serialize()` to indicate failure. To account for this change, it should either throw an error or return `undefined`.

ref: graphql/graphql-js#1104
2018-02-10 18:45:27 +01:00
2017-08-20 22:10:13 +07:00
2018-01-02 10:02:18 -05:00
2015-07-16 00:13:12 +06:00
2017-08-15 21:56:21 +07:00
2017-12-12 16:03:21 +07:00
2017-08-20 22:10:37 +07:00
2016-09-14 18:41:02 +07:00
2018-01-13 16:25:06 +07:00

graphql-php

Build Status Coverage Status Latest Stable Version License

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

Description
A PHP port of GraphQL reference implementation
Readme MIT 4.1 MiB
Languages
PHP 100%