graphql-php

PHP implementation of the GraphQL specification based on the reference implementation in JavaScript

MIT License

Downloads
51.8M
Stars
4.6K
Committers
136

Bot releases are visible (Hide)

graphql-php - v0.12.3

Published by vladar over 6 years ago

  • StandardServer: add support for the multipart/form-data content type (#300)
graphql-php - v0.12.2

Published by vladar over 6 years ago

  • SchemaPrinter: Use multi-line block for trailing quote (#294)
graphql-php - v0.12.1

Published by vladar over 6 years ago

  • Fixed bug in validation rule OverlappingFieldsCanBeMerged (#292)
  • Added one more breaking change note in UPGRADE.md (#291)
  • Spec compliance: remove data entry from response on top-level error (#281)
graphql-php - v0.12.0

Published by vladar over 6 years ago

  • RFC: Block String (multi-line strings via triple-quote """string""")
  • GraphQL Schema SDL: Descriptions as strings (including multi-line)
  • Changed minimum required PHP version to 5.6

Improvements:

  • Allow extending GraphQL errors with additional properties
  • Fixed parsing of default values in Schema SDL
  • Handling several more cases in findBreakingChanges
  • StandardServer: expect operationName (instead of operation) in input

Big thanks to @danez for contributions in this release.

graphql-php - v0.11.6

Published by vladar over 6 years ago

  • Switched to MIT License
  • Restored noLocation option for parser
  • Several minor bugfixes and improvements
graphql-php - v0.11.5

Published by vladar almost 7 years ago

  • Allow objects with __toString in IDType (see #210)
graphql-php - v0.11.4

Published by vladar almost 7 years ago

  • findBreakingChanges utility (see #199)
graphql-php - v0.11.3

Published by vladar almost 7 years ago

  • StandardServer: Support non pre-parsed PSR-7 request body (see #202)
graphql-php - v0.11.2

Published by vladar about 7 years ago

  • Bugfix: provide descriptions to custom scalars (see #181)
graphql-php - v0.11.1

Published by vladar about 7 years ago

  • Ability to override internal types via types option of the schema (see #174).
graphql-php - v0.11.0

Published by vladar about 7 years ago

This release brings little changes but there are two reasons why it is released as major version:

  1. To follow reference implementation versions (it matches 0.11.x series of graphql-js)
  2. It may break existing applications because scalar input coercion rules are stricter now:
    In previous versions sloppy client input could leak through with unexpected results.
    For example string "false" accidentally sent in variables was converted to boolean true
    and passed to field arguments. In the new version, such input will produce an error
    (which is a spec-compliant behavior).

Improvements:

  • Stricter input coercion (see #171)
  • Types built with BuildSchema now have reference to AST node with corresponding AST definition (in $astNode property)
  • Account for query offset for error locations (e.g. when query is stored in .graphql file)
graphql-php - v0.10.2

Published by vladar about 7 years ago

  • StandardServer improvement: do not raise an error when variables are passed as empty string (see #156)
graphql-php - v0.10.1

Published by vladar about 7 years ago

  • Fixed infinite loop in the server (see #153)
graphql-php - v0.10.0

Published by vladar about 7 years ago

This release brings several breaking changes. Please refer to UPGRADE document for details.

New features and notable changes:

  • Changed minimum PHP version from 5.4 to 5.5
  • Lazy loading of types without separate build step (see #69, see docs)
  • PSR-7 compliant Standard Server (see docs)
  • New default error formatting, which does not expose sensitive data (see docs)
  • Ability to define custom error handler to filter/log/re-throw exceptions after execution (see docs)
  • Allow defining schema configuration using objects with fluent setters vs array (see docs)
  • Allow serializing AST to array and re-creating AST from array lazily (see docs)
  • Apollo-style query batching support via server (see docs)
  • Schema validation, including validation of interface implementations (see docs)
  • Ability to pass custom config formatter when defining schema using GraphQL type language (see docs)

Improvements:

  • Significantly improved parser performance (see #137 and #128)
  • Support for PHP7 exceptions everywhere (see #127)
  • Improved documentation and docblock comments

Deprecations and breaking changes - see UPGRADE document.

graphql-php - v0.9.14

Published by vladar about 7 years ago

  • Minor change to assist DataLoader project in fixing #150
graphql-php - v0.10.0-rc1

Published by vladar about 7 years ago

Pre-release for testing backwards compatibility

graphql-php - v0.9.13

Published by vladar over 7 years ago

  • Fixed PHP notice and invalid conversion when non-scalar value is passed as ID or String type #121
graphql-php - v0.9.12

Published by vladar over 7 years ago

  • Fixed bug occurring when enum value is bool, null or float (see #141)
graphql-php - v0.9.11

Published by vladar over 7 years ago

  • Ability to disable introspection (#131)
graphql-php - v0.9.10

Published by vladar over 7 years ago

  • Fixed issue with query complexity throwing on invalid queries (see #125)
  • Fixed "Out of memory" error when resolveType returns unexpected result (see #119)
Package Rankings
Top 0.12% on Packagist.org
Top 6.72% on Proxy.golang.org
Badges
Extracted from project README
CI Coverage Status Latest Stable Version