Download the PHP package ez-php/http without Composer
On this page you can find all versions of the php package ez-php/http. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package http
ez-php/http
HTTP message objects for PHP — immutable Request, Response, RequestFactory, ResponseFactory, ResponseEmitter, Cookie, and UploadedFile. Zero dependencies.
Requirements
- PHP 8.5+
Installation
Usage
Request
Response
Cookie
UploadedFile
Classes
| Class | Description |
|---|---|
RequestInterface |
Contract for the Request value object |
Request |
Immutable HTTP request value object (final readonly class) |
RequestFactory |
Builds a Request from PHP superglobals |
Response |
HTTP response value object; clone-based withHeader() |
ResponseFactory |
Static helpers: json(), redirect(), html(), text(), noContent() |
ResponseEmitter |
Sends a Response to the client via http_response_code() and header() |
HeaderSenderInterface |
Abstraction over header() calls (injectable for testing) |
NativeHeaderSender |
Default HeaderSenderInterface implementation using PHP's header() |
Cookie |
Immutable value object for Set-Cookie attributes; toHeaderValue() produces the header string |
UploadedFile |
Wraps a $_FILES entry; isValid(), moveTo(), clientFilename(), clientMimeType(), size() |
License
MIT — Andreas Uretschnig
All versions of http with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.5
The package ez-php/http contains the following files
Loading the files please wait ...