Download the PHP package lumax/http-component without Composer
On this page you can find all versions of the php package lumax/http-component. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lumax/http-component
More information about lumax/http-component
Files in lumax/http-component
Package http-component
Short Description A component for handling HTTP Requests/Responses
License GPL-3.0-or-later
Informations about the package http-component
Luma | HTTP Component
The HTTP Component is a PHP library designed to simplify the process of making HTTP requests and handling HTTP responses in your applications. It follows the PSR-7 HTTP Message Interface standards for HTTP messages, making it compatible with other libraries and frameworks that also adhere to these standards.
Installation
You can install this library using Composer:
Features
This HTTP Component package provides the following key features:
Request and Response Handling
Request
andResponse
classes that implement thePsr\Http\Message\RequestInterface
andPsr\Http\Message\ResponseInterface
, respectively.- Easily create and manipulate HTTP requests and responses.
- Handle headers, request methods, status codes, and more.
Stream Handling
- A
Stream
class that implements thePsr\Http\Message\StreamInterface
for working with stream data. - Read and write data to streams, check for stream availability, and more.
HTTP Client
- A
HttpClient
class that implements thePsr\Http\Client\ClientInterface
. - Simplifies sending HTTP requests using cURL and processing HTTP responses.
- Supports common HTTP methods like GET, POST, PUT, PATCH and DELETE.
- Automatically parses response headers and handles redirects.
URI Handling
- A
Uri
class that implements thePsr\Http\Message\UriInterface
for working with URIs. - Easily construct and manipulate URIs, including handling scheme, host, port, path, query, and fragment.
Usage
Creating an HTTP Request
Creating an HTTP Client
Working with Streams
URI Handling
License
This package is open-source software licensed under the GNU General Public License, version 3.0 (GPL-3.0).