Registry / networking / codeinc-psr7-responses

codeinc-psr7-responses

JSON →
library2.1.2phppackagistunverified

A collection of PSR-7 response objects for common HTTP responses.

composer require codeinc/psr7-responses
INSTALL
IMPORT
SIG · CODEINC-PSR7-RESPO
C
codeinc-psr7-responses
networkingphpv2.1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

NotFoundResponse
use CodeInc\Psr7Responses\NotFoundResponse;

Create a 404 Not Found PSR-7 response.

use CodeInc\Psr7Responses\NotFoundResponse; $response = new NotFoundResponse(); echo $response->getStatusCode(); // 404
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.1.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
18
Amazon
1
OpenAI (training)
1
Resources
codeinc-psr7-responses — pip install codeinc-psr7-responses · libregistry