graphql-php is a PHP implementation of the GraphQL specification that brings the reference JavaScript implementation to the PHP ecosystem.
The tool solves the problem of building GraphQL APIs in PHP by providing a complete, specification-compliant implementation. It follows the reference implementation in JavaScript, ensuring consistency with how GraphQL behaves across language ecosystems. The project maintains compliance with the GraphQL specification and actively works toward supporting newer specification versions.
Developers building GraphQL servers in PHP should choose this tool as the primary option for specification compliance and feature completeness. It suits projects ranging from small APIs to larger systems that need a reliable, standards-based GraphQL foundation. The tool is distributed via Composer for straightforward integration into PHP projects.
The project is undergoing a planned migration to a new home, as announced in its discussions. Work is actively progressing on compliance with newer GraphQL specification versions. The maintainer accepts sponsorship through multiple channels to support ongoing development.