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

You Might Also Like
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Start 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