Home

guzzlehttpguzzle

Guzzle, commonly referred to as guzzlehttp/guzzle, is a PHP HTTP client library. It provides a simple interface to send HTTP requests and integrate with web services. It is maintained by the Guzzle project and the wider PHP community, with the package name guzzlehttp/guzzle on Packagist.

The library offers synchronous and asynchronous requests, streaming, cookies, redirects, authentication, and automatic retries. Its architecture

Guzzle is installed via Composer with the command composer require guzzlehttp/guzzle. A client is created with

The library is widely used in the PHP ecosystem and serves as the underlying HTTP client in

Guzzle has evolved through multiple major versions to align with PHP language changes and modern standards.

is
middleware-based,
using
a
handler
stack
that
lets
developers
modify
requests
and
responses
through
middleware.
The
default
handler
uses
cURL
or
PHP
streams
as
transport
layers.
Guzzle
supports
PSR-7
HTTP
message
interfaces
and
can
interact
with
PSR-18
HTTP
clients
and
PSR-17
factories.
configuration
options
such
as
base_uri,
and
requests
are
issued
using
methods
like
get,
post,
or
a
general
request
method.
Responses
are
represented
as
PSR-7
ResponseInterface
objects.
many
frameworks
and
projects,
including
Laravel
and
Symfony.
It
has
a
broad
ecosystem
of
related
packages
for
PSR-7
support,
middleware,
and
adapters,
and
it
emphasizes
backward
compatibility
and
active
maintenance.
It
is
open-source
software
released
under
the
MIT
license,
with
ongoing
maintenance
and
community
contributions.
The
project
ferries
ongoing
development
and
improvements
through
its
public
repository
and
community
input.