Download the PHP package jumbodroid/httpclient without Composer
On this page you can find all versions of the php package jumbodroid/httpclient. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jumbodroid/httpclient
More information about jumbodroid/httpclient
Files in jumbodroid/httpclient
Package httpclient
Short Description HttpClient is an implementation of HTTP Client for PHP and Laravel
License MIT
Informations about the package httpclient
httpclient
httpclient is a PHP & Laravel package, designed to help PHP developers build robust modern applications that interact with other applications and APIs in the backend to deliver experiences that users love.
httpclient adopts and adheres to or implements the following PHP Standards Recommendations (PSRs):
Leverage httpclient to build modern interconnected applications for the web.
httpclient saves you the hustle of dealing with the more mundane and lower level APIs needed to create interconnected web applications.
Installation
composer require jumbodroid/httpclient
Usage
PSR-7
PSR-7 describes common interfaces for representing HTTP messages as described in RFC 7230 and RFC 7231, and URIs for use with HTTP messages as described in RFC 3986. This package includes an implementation of PSR-7.
Request | Response
Use the getHeaderLine()
method to retrieve a header value as a string containing all header values of a case-insensitive header by name concatenated with a comma.
Use getHeader()
to retrieve an array of all the header values for a particular case-insensitive header by name.
Note: Not all header values can be concatenated using a comma (e.g., Set-Cookie
). When working with such headers, consumers of Request and Response classes SHOULD rely on the getHeader()
method for retrieving such multi-valued headers.
Request
Outgoing, client-side request
Incoming, server-side request
Response
Outgoing, server-side response
Stream
Uri
UploadedFile
PSR-17
PSR-17 describes a common standard for factories that create PSR-7 compliant HTTP objects. This package provides an implementation of PSR-17.
RequestFactory
ResponseFactory
ServerRequestFactory
StreamFactory
UploadedFileFactory
UriFactory
PSR-18
Client - A Client is a library that implements this specification for the purposes of sending PSR-7-compatible HTTP Request messages and returning a PSR-7-compatible HTTP Response message to a Calling library.
Calling Library - A Calling Library is any code that makes use of a Client. It does not implement this specification's interfaces but consumes an object that implements them (a Client).
Client
ClientException
RequestException
NetworkException
All versions of httpclient with dependencies
ext-curl Version *
psr/http-message Version >=2.0
psr/http-factory Version >=1.0
psr/http-client Version >=1.0
symfony/options-resolver Version >=5.1