laipower/wp-content/plugins/wp-webauthn/wp-webauthn-vendor/nyholm/psr7-server
2023-10-22 22:21:37 +00:00
..
.github updated plugin WP-WebAuthn version 1.3.1 2023-10-22 22:21:37 +00:00
src updated plugin WP-WebAuthn version 1.3.1 2023-10-22 22:21:37 +00:00
CHANGELOG.md updated plugin WP-WebAuthn version 1.3.1 2023-10-22 22:21:37 +00:00
composer.json updated plugin WP-WebAuthn version 1.3.1 2023-10-22 22:21:37 +00:00
LICENSE updated plugin WP-WebAuthn version 1.3.1 2023-10-22 22:21:37 +00:00
README.md updated plugin WP-WebAuthn version 1.3.1 2023-10-22 22:21:37 +00:00

Helper class to create PSR-7 server request

Latest Version Build Status Code Coverage Quality Score Total Downloads Monthly Downloads Software License

A helper class that can create ANY PSR-7 server request.

Installation

composer require nyholm/psr7-server

Usage

// Instanciate ANY PSR-17 factory implementations. Here is nyholm/psr7 as an example
$psr17Factory = new \Nyholm\Psr7\Factory\Psr17Factory();

$creator = new \Nyholm\Psr7Server\ServerRequestCreator(
    $psr17Factory, // ServerRequestFactory
    $psr17Factory, // UriFactory
    $psr17Factory, // UploadedFileFactory
    $psr17Factory  // StreamFactory
);

$serverRequest = $creator->fromGlobals();

Other packages