Download the PHP package worksome/graphql-helpers without Composer
On this page you can find all versions of the php package worksome/graphql-helpers. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download worksome/graphql-helpers
More information about worksome/graphql-helpers
Files in worksome/graphql-helpers
Package graphql-helpers
Short Description This is my package graphql-helpers
License MIT
Homepage https://github.com/worksome/graphql-helpers
Informations about the package graphql-helpers
PHP GraphQL Helpers
A collection of GraphQL helpers for GraphQL PHP.
Installation
You can install the package via composer:
Usage
Enum Type Registration
The PhpEnumType class can be used to override the GraphQL\Type\Definition\EnumType class with automatic case conversion.
The PhpEnumType class will automatically use the description from the GraphQL\Type\Definition\Description
attribute if it is present.
The CasesDescribedBy attribute
If you require the use of a custom method to retrieve the description, you can use the #[CasesDescribedBy] attribute.
Enum Concerns
GraphQLConvertable
The GraphQLConvertable concern is used to easily convert an enum instance to its GraphQL value within your codebase.
GraphQLDescribable
The GraphQLDescribable concern is used to easily retrieve the description of an enum instance using the value from a GraphQL\Type\Definition\Description attribute.
Testing Enums
The HandlesEnumConversions concern adds support for quickly converting an enum to its GraphQL value.
Testing
Changelog
Please see GitHub Releases for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Owen Voke
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of graphql-helpers with dependencies
illuminate/support Version ^13.0
jawira/case-converter Version ^3.6
webonyx/graphql-php Version ^15.37