承接 hydrakit/nyholm 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hydrakit/nyholm

Composer 安装命令:

composer require hydrakit/nyholm

包简介

Nyholm PSR-7/PSR-17 adapter for the Hydra PHP framework

README 文档

README

The one place the framework names a concrete PSR-7/PSR-17 implementation.

hydrakit/http is deliberately free of any PSR-7 vendor — it depends only on the PSR interfaces and defines a ServerRequestProviderInterface seam for building the incoming request from the environment. This package is the default adapter that fills that seam with nyholm/psr7.

Usage

use Hydra\Nyholm\NyholmRequestProvider;
use Nyholm\Psr7\Factory\Psr17Factory;

$factory  = new Psr17Factory; // implements every PSR-17 factory interface
$provider = NyholmRequestProvider::create($factory);

$request = $provider->fromGlobals(); // a PSR-7 ServerRequestInterface

The app's service provider binds ServerRequestProviderInterface to this, and binds Psr17Factory as the PSR-17 response/stream factory the rest of the app resolves.

Swapping it out

Because consumers depend on Hydra\Http\Contracts\ServerRequestProviderInterface (and the PSR-17 factory interfaces), an app that prefers a different PSR-7 library simply doesn't require this package: it binds its own provider and factories. Nothing in the framework reaches for nyholm directly.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-07-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固