chubbyphp/chubbyphp-lazy-middleware 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

chubbyphp/chubbyphp-lazy-middleware

最新稳定版本:1.1.0

Composer 安装命令:

composer require chubbyphp/chubbyphp-lazy-middleware

包简介

Chubbyphp Lazy Middleware

README 文档

README

Build Status Scrutinizer Code Quality Code Coverage Total Downloads Monthly Downloads Latest Stable Version Latest Unstable Version

Description

DEPRECATED: Middlewares in Slim3 are already lazy...

IMPORTANT: If you're interested in a lazy adapter for psr-15 middleware, i suggest to use chubbyphp/chubbyphp-slim-psr15. Same applies if your searching for a psr-15 request handler.

Allow to lazyload middlewares.

Requirements

  • php: ~7.0
  • psr/container: ~1.0
  • psr/http-message: ~1.0

Installation

Through Composer as chubbyphp/chubbyphp-lazy-middleware.

composer require chubbyphp/chubbyphp-lazy-middleware "~1.1"

Usage

<?php

use Chubbyphp\Lazy\LazyMiddleware;
use Psr\Http\Message\ServerRequestInterface as Request;
use Psr\Http\Message\ResponseInterface as Response;

$container['service'] = function (Request $request, Response $response) {
    // run some lazy logic
};

$middleware = new LazyMiddleware($container, 'service');
$response = $middleware($request, $response);

Copyright

Dominik Zogg 2016

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-12-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固