Weave Code
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

Client Common Laravel Package

php-http/client-common

Common utilities for HTTPlug HTTP clients: a BatchClient for parallel requests, a convenience client exposing HTTP verbs as methods, and emulator/decorator layers for sync and async clients. Designed to simplify client composition and tooling.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Enables consistent HTTP client behavior across services by standardizing middleware-based plugins (retries, auth, redirects) without vendor lock-in
  • Reduces build vs buy tradeoffs by providing battle-tested abstractions for HTTP client composition, avoiding reinventing core HTTP capabilities
  • Ideal for library authors needing transport-agnostic clients and applications requiring reliable API integrations (e.g., payment gateways, third-party service integrations)
  • Supports roadmap flexibility by decoupling client logic from transport implementations, allowing future transport swaps (e.g., switching from Guzzle to Curl without changing business logic)

When to Consider This Package

  • Adopt when building PSR-7/HTTPlug-compliant applications needing configurable HTTP clients with cross-cutting concerns (e.g., enterprise applications integrating multiple external APIs)
  • Use when needing robust error handling, retry strategies, or authentication flows that must be consistent across all HTTP calls
  • Avoid if your project already uses a framework-specific HTTP client with built-in middleware (e.g., Laravel's HttpClient) or if requirements are trivial (single, simple GET requests)
  • Not suitable for non-PSR-7 environments or when needing low-level transport control outside middleware patterns

How to Pitch It (Stakeholders)

  • Executives: "This package reduces development costs and technical risk by leveraging a proven, community-supported solution for HTTP client management. It ensures reliable API integrations with built-in retries and error handling, minimizing downtime and support costs. The MIT license allows free, flexible use without vendor lock-in."
  • Engineering: "It provides a clean, testable architecture through middleware composition, letting us add features like retries or auth without modifying core client code. Standardized on PSR-7, it integrates seamlessly with existing PHP ecosystem tools and avoids reinventing HTTP client patterns—saving weeks of development and debugging time."
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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4
php-http/client-implementation
phpcr/phpcr-implementation
cucumber/gherkin-monorepo
haydenpierce/class-finder
psr/simple-cache-implementation
uri-template/tests