garlic/graphql
garlic/graphql is a Laravel package for building GraphQL APIs in PHP. It helps define schemas and types, wire resolvers, and execute queries against your application, giving teams a structured way to expose Eloquent-backed data and custom logic through a single GraphQL endpoint.
Adopt only when all of these hold:
Look elsewhere when:
webonyx/graphql-php directly, or Lighthouse for a Laravel-native server; use Symfony HttpClient / Laravel HTTP client for plain service calls.For executives: This is a small, permissively licensed (MIT) integration helper for GraphQL between microservices inside one specific vendor ecosystem. It is not a strategic dependency: three GitHub stars, no known downstream users, and no release since December 2019. Recommendation is do not adopt as a platform dependency. The realistic value is architectural — a compact reference for how to expose and consume a typed GraphQL contract between services — and that value can be captured by reading or forking the code at essentially zero cost and zero vendor lock-in. If we pursue GraphQL as a service contract, we should budget for a maintained stack (Lighthouse/webonyx for PHP-Laravel, Federation or a gateway if we go multi-team) rather than treating this bundle as the foundation.
For engineering: It's a Symfony bundle aimed at Garlic's own service mesh, so it doesn't drop into our Laravel apps and provides no Eloquent, policy, or HTTP-endpoint integration. It's unmaintained since 2019 — assume no upstream fixes, plan to vendor/fork if we use any of it, and don't let it near client-facing endpoints. If the goal is "typed contract between our services," propose Lighthouse (Laravel) or webonyx/graphql-php plus a schema-first workflow; if the goal is fewer round-trips, evaluate gRPC before GraphQL. Ask for a spike, not an ADR.
How can I help you explore Laravel packages today?