bendeckdavid/graphql-client
A lightweight GraphQL client for Laravel and PHP with a fluent interface for building queries and mutations, passing variables and headers, and handling responses from remote GraphQL APIs. It simplifies integrating GraphQL services into your application with clean, readable code.
Consider it when:
Look elsewhere when:
To executives: This is a small, low-risk dependency that shortens the time to integrate GraphQL APIs into our Laravel products. The latest patch is backward-compatible and adds flexibility in how we handle responses, so there is no migration burden. Main caveat: it is a lightweight, small-community package, so we should treat it as an implementation detail behind our own abstraction rather than a strategic platform bet.
To engineering: v1.3.1 is a minor, non-breaking enhancement — it adds an optional parameter to return responses as a JSON object and improves numeric handling within JSON. Practical impact: cleaner downstream parsing and easier debugging/passthrough. Recommend wrapping the client behind an interface so we can swap it if maintenance or feature needs change, and pinning the version with routine dependency review.
How can I help you explore Laravel packages today?