sailor

A typesafe GraphQL client for PHP

MIT License

Downloads
175.9K
Stars
78
Committers
8
sailor - v0.13.0

Published by spawnia almost 3 years ago

Added

  • Allow symfony/console and symfony/var-exporter v6 as dependencies
sailor - v0.12.0

Published by spawnia almost 3 years ago

Added

  • Generate Enums and Inputs from the schema

Changed

  • Operations with input object types as arguments expect generated classes instead of \stdClass
  • The operation names Inputs and Enums are now reserved
sailor - v0.11.0

Published by spawnia almost 3 years ago

Added

  • Support interfaces
  • Support unions
  • Ensure generated code complies with PHPStan v1 at level max

Changed

  • Always add field __typename to any subselection and have it available in the result through TypedObject
  • Name generated TypedObject classes after the corresponding object type
sailor - v0.10.2

Published by spawnia almost 3 years ago

Fixed

  • Fall back to not querying Directive.isRepeatable if it is not available
sailor - v0.10.1

Published by spawnia about 3 years ago

Fixed

  • Allow "nette/php-generator": "^3.6.3"
sailor - v0.10.0

Published by spawnia about 3 years ago

Added

  • Allow overwriting the client from EndpointConfig for specific operations or per request
sailor - v0.9.0

Published by spawnia about 3 years ago

sailor - v0.8.0

Published by spawnia about 3 years ago

Changed

  • Remove forced dependency on guzzle/guzzle
sailor - v0.7.0

Published by spawnia over 3 years ago

Added

sailor - v0.6.0

Published by spawnia over 3 years ago

Added

sailor - v0.5.0

Published by spawnia over 3 years ago

Changed

  • Return the first registered mock instance for each operation class
    on subsequent calls to Operation::mock()
sailor - v0.4.2

Published by spawnia over 3 years ago

Fixed

  • Fix initialization of Result from Response
sailor - v0.4.1

Published by spawnia over 3 years ago

Changed

  • Improve error message when trying to map unknown fields onto result classes
sailor - v0.4.0

Published by spawnia over 3 years ago

Added

  • Add method Result::errorFree() to ease safe access to a result class without errors
sailor - v0.3.0

Published by spawnia over 3 years ago

Added

  • Allow mocking single operations with Mockery

Fixed

  • Fix codegen for operations with multiple parameters

Changed

  • Require Directive.isRepeatable on introspection
  • Use typed properties
  • Rewrite Configuration class

Removed

  • Remove EndpointConfig::$mockClient and EndpointConfig::client()
sailor - v0.2.0

Published by spawnia over 3 years ago

Added

  • Support PHP 8

Changed

  • Require PHP 7.4 or 8
  • Require newer versions of various dependencies
sailor - v0.1.0

Published by spawnia over 3 years ago

Added

  • Fetch introspection results via vendor/bin/sailor introspect
  • Define operations in .graphql files and automatically generate client code
  • Statically validate correctness of defined operations