Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 1.48 KB

README.md

File metadata and controls

48 lines (30 loc) · 1.48 KB
sailor-logo"

CI Status codecov StyleCI Latest Stable Version Total Downloads

A typesafe GraphQL client for PHP

Installation

Install through composer

composer require spawnia/sailor

Run vendor/bin/sailor to set up a configuration file sailor.php in your project root.

Usage

Sprinkle .graphql files throughout your app that contain the queries and mutations you use. The contained operations must have unique names.

Run vendor/bin/sailor to generate PHP classes that offer typesafe access.

Run vendor/bin/sailor introspect to update your schema with the latest changes from the server by running an introspection query.

Changelog

Please have a look at CHANGELOG.md.

Contributing

Please have a look at CONTRIBUTING.md.

License

This package is licensed using the MIT License.