nyholm/psr7-server

处理PSR-7服务器请求的辅助类

资助包维护!
nyholm
Zegnat

安装量: 3,314,047

依赖项: 258

建议者: 4

安全: 0

星标: 90

关注者: 7

分支: 21

开放问题: 11

1.1.0 2023-11-08 09:30 UTC

This package is auto-updated.

Last update: 2024-09-08 11:12:33 UTC


README

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

一个可以创建任何PSR-7服务器请求的辅助类。

安装

composer require nyholm/psr7-server

使用方法

// 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();

其他包