Registry / http-client / nyholm-psr7-server

nyholm-psr7-server

JSON →
library1.1.0phppackagistunverified

Helper classes to handle PSR-7 server requests.

composer require nyholm/psr7-server
INSTALL
IMPORT
SIG · NYHOLM-PSR7-SERVER
N
nyholm-psr7-server
http-clientphpv1.1.0
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.

ServerRequestCreator
use Nyholm\Psr7Server\ServerRequestCreator;

Creates a PSR-7 server request from PHP globals.

use Nyholm\Psr7Server\ServerRequestCreator; $creator = new ServerRequestCreator( \Nyholm\Psr7\Factory\Psr17Factory::class, \Nyholm\Psr7\Factory\Psr17Factory::class, \Nyholm\Psr7\Factory\Psr17Factory::class, \Nyholm\Psr7\Factory\Psr17Factory::class ); $request = $creator->fromGlobals(); echo $request->getMethod();
Debug
Known issues
gotchaRequires a PSR-17 factory implementation (e.g., nyholm/psr7).
fix
Install nyholm/psr7 or another PSR-17 implementation.
affects: >=1.0.0
Upgrade
Version history
1.1.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Resources
nyholm-psr7-server — pip install nyholm-psr7-server · libregistry