承接 http-interop/http-server-middleware 相关项目开发

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

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

http-interop/http-server-middleware

最新稳定版本:1.1.1

Composer 安装命令:

composer require http-interop/http-server-middleware

包简介

Common interface for HTTP server-side middleware

README 文档

README

Deprecation warning!

Starting January 22nd, 2018 http-interop is officially deprecated in favor of PSR-15.

From v1.1, this package directly extends PSR-15 interfaces to provide backwards compatibility and should no longer be added to new projects.

Please switch to psr/http-server-middleware as soon as possible.

Version Constraint Warning

To continue using this package for backwards compatibility, use the following version constraint to avoid a type error:

{
    "require": {
        "http-interop/http-server-middleware": "^1.1.1"
    }
}

See issue #6 for details.

Changes Required

There are two changes required to use the official psr/http-server-middleware package:

Update Composer

Replace the line in composer.json that reads:

{
    "require": {
        "http-interop/http-server-middleware": "^1.0"
    }
}

with:

{
    "require": {
        "psr/http-server-middleware": "^1.0"
    }
}

Update Code

Replace any references to:

use Interop\Http\Server\MiddlewareInterface;

with:

use Psr\Http\Server\MiddlewareInterface;

统计信息

  • 总下载量: 287.68k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 23
  • 点击次数: 1
  • 依赖项目数: 10
  • 推荐数: 0

GitHub 信息

  • Stars: 22
  • Watchers: 13
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-11-09