This is a PHP implementation of the GraphQL specification based on the reference implementation in JavaScript. GraphQL is a modern way to build HTTP APIs consumed by the web and mobile clients. It is intended to be an alternative to REST and SOAP APIs (even for existing applications). GraphQL itself is a specification designed by Facebook engineers. Various implementations of this specification were written in different languages and environments. A great overview of GraphQL features and benefits is presented on the official website. All of them equally apply to this PHP implementation. graphql-PHP is a feature-complete implementation of GraphQL specification in PHP. It was originally inspired by reference JavaScript implementation published by Facebook. This library is a thin wrapper around your existing data layer and business logic. It doesn't dictate how these layers are implemented or which storage engines are used.

Features

  • Primitives to express your app as a Type System
  • Validation and introspection of this Type System (for compatibility with tools like GraphiQL)
  • Parsing, validating and executing GraphQL queries against this Type System
  • Rich error reporting, including query validation and execution errors
  • Optional tools for parsing schema definition language
  • Tools for batching requests to backend storage

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow graphql-php

graphql-php Web Site

Other Useful Business Software
Build AI Apps with Gemini 3 on Vertex AI Icon
Build AI Apps with Gemini 3 on Vertex AI

Access Google’s most capable multimodal models. Train, test, and deploy AI with 200+ foundation models on one platform.

Vertex AI gives developers access to Gemini 3—Google’s most advanced reasoning and coding model—plus 200+ foundation models including Claude, Llama, and Gemma. Build generative AI apps with Vertex AI Studio, customize with fine-tuning, and deploy to production with enterprise-grade MLOps. New customers get $300 in free credits.
Try Vertex AI Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of graphql-php!

Additional Project Details

Programming Language

PHP

Related Categories

PHP Software Development Software, PHP Build Tools

Registered

2022-03-15