Registry / serialization / youshido-graphql

youshido-graphql

JSON →
library1.7.1phppackagistunverified

Pure PHP GraphQL

composer require youshido/graphql
INSTALL
IMPORT
SIG · YOUSHIDO-GRAPHQL
Y
youshido-graphql
serializationphpv1.7.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Schema
use Youshido\GraphQL\Schema;

Define a simple GraphQL schema with a hello query

use Youshido\GraphQL\Schema; use Youshido\GraphQL\Type\ObjectType; use Youshido\GraphQL\Field\Field; $schema = new Schema([ 'query' => new ObjectType([ 'name' => 'Query', 'fields' => [ new Field([ 'name' => 'hello', 'type' => Type::string(), 'resolve' => function () { return 'World'; } ]) ] ]) ]);
Debug
Known issues
breakingLibrary is no longer actively maintained; consider webonyx/graphql-php
fix
Migrate to webonyx/graphql-php for active development
affects: >=1.0.0
Upgrade
Version history
1.7.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
24
OpenAI (training)
1
Resources
youshido-graphql — pip install youshido-graphql · libregistry