Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Graphql Client Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy for GraphQL consumption: Informs whether to hand-roll a GraphQL transport layer in Laravel or adopt a small, focused client. v1.3.1's optional parameter for returning the response as a JSON object reduces the need for custom response-parsing code, lowering the "build" cost argument.
  • Integration architecture for consumer-facing features: Relevant when the product depends on a GraphQL API (headless CMS, commerce backend, third-party SaaS). The ability to choose array vs. JSON-object responses lets PMs standardize how integration layers, caching, and error handling are designed across teams.
  • API/BFF roadmap decisions: A lightweight client supports BFF and backend-for-frontend patterns without committing to a heavier framework; the raw JSON option is useful for passthrough and debugging workflows.
  • Risk and dependency management: A patch release (v1.3.1) with a backward-compatible enhancement means low migration cost — a data point for "adopt now vs. defer" decisions and for dependency-review gates.
  • Feature scoping for internal tooling: Numeric-in-JSON handling and raw-object responses affect how dashboards, admin tools, and data-sync jobs are built; PMs can scope features assuming cleaner numeric handling and flexible response shapes.

When to Consider This Package

Consider it when:

  • You consume an external or internal GraphQL API from a Laravel/PHP application and want a thin, low-ceremony client.
  • You need control over response shape — v1.3.1's JSON-object option helps when downstream code expects structured objects rather than decoded arrays, or when you want to inspect/pass through raw responses.
  • Correct numeric handling in JSON matters (e.g., IDs, prices, counts) and you want the client to preserve numeric fidelity.
  • You want a minimal dependency that is easy to wrap, abstract, or swap out later.

Look elsewhere when:

  • You need schema introspection, code generation, or typed DTOs from a GraphQL schema.
  • You require subscriptions/WebSockets, persisted queries, advanced caching, or federation support.
  • You need a server-side GraphQL implementation (that is a different category — e.g., Lighthouse) rather than a client.
  • You need enterprise-grade support, a large contributor base, or a formal SLA; this package is small and should be assessed for bus factor and maintenance cadence.
  • You are standardizing on a full-featured JS/Apollo-style ecosystem or a multi-language API client strategy.

How to Pitch It (Stakeholders)

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.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle