lidskasila/graphql-php-schema-parser

PHP library for parsing GraphQL schema

dev-master 2017-03-23 11:07 UTC

This package is not auto-updated.

Last update: 2020-08-11 11:33:49 UTC


README

Build Status Quality Score Code Coverage Downloads this Month

Library for PHP that can parse GraphQL text documentation to objects so they can be worked with afterwards.

Requirements

LidskaSila/GraphQLPHPSchemaParser requires PHP 7.0 or higher.

Installation

$ composer require lidskasila/graphql-php-schema-parser

Usage

$schemaString = file_get_contents('schema.graphqls');

$schema = SchemaParser::parseSchema($schemaString);