Download the PHP package lighthouse/http without Composer
On this page you can find all versions of the php package lighthouse/http. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download lighthouse/http
More information about lighthouse/http
Files in lighthouse/http
Download lighthouse/http
More information about lighthouse/http
Files in lighthouse/http
Vendor lighthouse
Package http
Short Description PSR-7 HTTP Message and PSR-17 HTTP Factory implementation for the Lighthouse framework
License MIT
Package http
Short Description PSR-7 HTTP Message and PSR-17 HTTP Factory implementation for the Lighthouse framework
License MIT
Please rate this library. Is it a good library?
Informations about the package http
Lighthouse HTTP
A PSR-7 HTTP Message and PSR-17 HTTP Factory implementation for the Lighthouse framework.
Installation
Requirements
- PHP 8.2 or higher
Features
- Full PSR-7 (HTTP Message) implementation
- Full PSR-17 (HTTP Factories) implementation
- Immutable value objects
- Strict typing throughout
- Zero dependencies beyond PSR interfaces
Quick Start
Creating a Request
Creating a Server Request from Globals
Creating a Response
Working with Streams
Working with URIs
Using Factories (PSR-17)
PSR-7 Interfaces Implemented
| Interface | Implementation |
|---|---|
MessageInterface |
Message (abstract) |
RequestInterface |
Request |
ServerRequestInterface |
ServerRequest |
ResponseInterface |
Response |
StreamInterface |
Stream |
UriInterface |
Uri |
UploadedFileInterface |
UploadedFile |
PSR-17 Interfaces Implemented
| Interface | Implementation |
|---|---|
RequestFactoryInterface |
RequestFactory |
ServerRequestFactoryInterface |
ServerRequestFactory |
ResponseFactoryInterface |
ResponseFactory |
StreamFactoryInterface |
StreamFactory |
UriFactoryInterface |
UriFactory |
UploadedFileFactoryInterface |
UploadedFileFactory |
Immutability
All PSR-7 objects are immutable. Methods that appear to modify the object actually return a new instance:
Testing
License
MIT License. See LICENSE for details.
Part of the Lighthouse Framework
This package is part of the Lighthouse Framework, an educational PHP framework designed to teach how modern frameworks work internally.
All versions of http with dependencies
PHP Build Version
Package Version
The package lighthouse/http contains the following files
Loading the files please wait ...