pixelandtonic/graphql-php
PHP implementation of the GraphQL specification (based on graphql-js). Build schemas, execute queries, and add custom types, fields, and resolvers. Install via Composer and explore full docs and ready-to-run examples.
Adoption of GraphQL for PHP-based APIs:
Performance Optimization:
Developer Experience (DX):
laravel-graphql or graphql-php directly to leverage existing Eloquent models as GraphQL types (e.g., User → UserType).Roadmap Prioritization:
Use Cases:
users, orders, payments under /graphql).graphql-php + WebSockets) for live collaboration tools (e.g., Trello clones).Adopt if:
Look elsewhere if:
"We’re proposing to modernize our API infrastructure by adopting GraphQL via the graphql-php package. This will:
/graphql endpoint, cutting client-server chatter by 30–50%."Here’s why graphql-php is the right choice for our Laravel stack:
graphql-php or laravel-graphql; pairs with DataLoader for batching.How can I help you explore Laravel packages today?