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

Laravel Guzzle Laravel Package

astrotomic/laravel-guzzle

A lightweight Laravel integration for the Guzzle HTTP client. Configure Guzzle clients through Laravel's config and service container, resolve them via dependency injection, and make outbound HTTP requests with a familiar, framework-native setup.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy on HTTP client plumbing. This package is a thin integration layer, not a feature: it lets a Laravel service resolve pre-configured Guzzle clients (base URI, headers, auth, timeouts) from config/guzzle.php and inject them via the container/facade. The PM decision it supports is "stop hand-rolling a Http::-alternative wrapper class per service" — adopt a shared, config-driven convention instead.
  • Third-party API integration roadmap. Any roadmap item involving outbound calls to a vendor API (payments, CRM, shipping, KYC, LLM providers) benefits from named, per-environment client configs and centralized credential handling rather than ad-hoc new Client([...]) scattered across jobs and controllers.
  • Multi-tenant / multi-provider architecture. If the roadmap includes per-tenant credentials or swapping providers behind an interface, config-defined named clients give you a clean seam to switch providers without touching call sites.
  • Testability and QA spend. A container-bound client means feature tests can swap in Guzzle's MockHandler via the container rather than making real network calls — a direct reduction in flaky CI and a prerequisite for contract tests against vendor sandboxes.
  • Upgrade risk management. 2.4.0's substantive change is PHP 8.1 support plus a widened illuminate/support constraint; there are no new features, no breaking changes, and no deprecations. That makes this a low-risk, low-cost upgrade that keeps the dependency inside your supported PHP/Laravel matrix — the PM action is "schedule it in the next maintenance window," not "plan a migration."
  • Roadmap signal (caution). The release is almost entirely Dependabot bumps and CI housekeeping, with PHP 8.1 arriving via a first-time contributor. Treat this as maintenance-mode-but-alive: fine for a small integration shim, but don't build product-differentiating logic on top of it.

When to Consider This Package

Adopt when:

  • You're on Laravel 8/9-era with PHP 7.4–8.1, or you have older services you can't move to Laravel 10+ yet.
  • You need more than one outbound HTTP client with distinct base URIs, auth schemes, or timeouts, and you want those declared in config and reviewed by ops/security rather than hardcoded.
  • Your team already standardizes on Guzzle directly (custom middleware, handlers, retry/backoff stacks) and you want Laravel-native wiring without losing Guzzle's escape hatches.
  • You want centralized, env-driven credential and header management for vendor integrations, with a single place to audit.

Look elsewhere when:

  • You're on Laravel 10+ / PHP 8.2+. Laravel's first-party Illuminate\Support\Facades\Http already covers config-driven clients, retries, fakes (Http::fake()), and per-client macros — this package becomes redundant weight and an extra supply-chain surface. This is the dominant reason to say no.
  • You need first-class concurrency/pooling, PSR-18 portability, or async promises as a product requirement — the package doesn't add capability here; go straight to Guzzle or an async client library.
  • You require active feature development, security SLAs, or a commercial support path. One primary maintainer, a release history dominated by automated dependency bumps, and a first-time contributor landing the PHP 8.1 change are all indicators of a low-bus factor.
  • You need typed DTOs, OpenAPI-generated clients, or retry/circuit-breaker policy as a product concern — reach for a generated SDK or Saloon and get schema guarantees for free.

Adoption criteria checklist: pin to ^2.4, verify your PHP/Laravel matrix is inside the widened constraint, confirm the maintainer is responsive enough for your risk tolerance, and wrap the facade behind your own interface so a future swap to Http:: is a one-file change.

How to Pitch It (Stakeholders)

For executives (one paragraph): We're standardizing how our Laravel services talk to third-party APIs. This package is a small, low-risk adapter that moves outbound HTTP configuration — endpoints, credentials, timeouts — out of application code and into reviewed configuration, which improves auditability of vendor credentials and cuts the engineering time spent re-implementing the same HTTP wrapper per service. Version 2.4.0 contains no functional or breaking changes; it adds PHP 8.1 compatibility and refreshes dependencies. It is a routine maintenance upgrade, not an investment. Because the package is small and lightly maintained, it's cheap to adopt and cheap to remove — we'll isolate it behind our own interface so we retain the option to migrate to Laravel's built-in HTTP client with a single change.

For engineering (summary): 2.4.0 = PHP 8.1 support + illuminate/support bump + CI/dependency housekeeping. Zero breaking changes, zero new features, zero deprecations. Upgrading is a composer update with no code changes expected; the meaningful diligence is confirming your PHP/Laravel support matrix now lands inside the widened illuminate/support constraint. Note the release is overwhelmingly Dependabot-driven with a single primary maintainer — budget an hour to read the diff, pin ^2.4, and wrap the facade behind an internal client factory/interface so a future Http::client() migration is contained. If the service is already on Laravel 10+, recommend not adopting and using the first-party HTTP client instead.

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.
skyraptor/chatter
edlugz/sasapay
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource