Registry / networking / http-interop-http-factory

http-interop-http-factory

JSON →
library0.4.1phppackagistunverified

Common interface for HTTP message factories

composer require http-interop/http-factory
INSTALL
IMPORT
SIG · HTTP-INTEROP-HTTP-
H
http-interop-http-factory
networkingphpv0.4.1
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.

ServerRequestFactoryInterface
use Http\Factory\ServerRequestFactoryInterface;

Create a server request using a PSR-17 factory

<?php use Http\Factory\ServerRequestFactoryInterface; // Typically used via a PSR-17 implementation $factory = new SomeImplementation\ServerRequestFactory(); $request = $factory->createServerRequest('GET', '/');
Debug
Known issues
gotchaThis package only provides interfaces; you need a concrete implementation like nyholm/psr7
fix
Install a PSR-17 implementation package
affects: >=0.4.0
Upgrade
Version history
0.4.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
http-interop-http-factory — pip install http-interop-http-factory · libregistry