arbiter/arbiter 问题修复 & 功能扩展

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

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

arbiter/arbiter

最新稳定版本:1.1.0

Composer 安装命令:

composer require arbiter/arbiter

包简介

An Action system for Action-Domain-Responder.

README 文档

README

An Action system for Action-Domain-Responder.

This package is installable and PSR-4 autoloadable via Composer as arbiter/arbiter.

Alternatively, download a release or clone this repository, then map the Arbiter\ namespace to the package src/ directory.

This package requires PHP 5.5 or later; it has been tested on PHP 5.6, PHP 7, and HHVM. You should use the latest available version of PHP as a matter of principle.

To run the tests, issue composer install to install the test dependencies, then issue phpunit.

An Action value object is composed of three elements:

  • an $input callable: this collects input from the incoming ServerRequestInterface and converts it to an array of parameters suitable for call_user_func_array();

  • a $domain callable: this is invoked via call_user_func_array() using the array of parameters provided by the $input callable; and

  • a $responder callable: this is invoked with the incoming ServerRequestInterface, the outgoing ResponseInterface, and the result (or "payload") returned by the $domain callable.

Call the ActionHandler handle() method with the Action, a ServerRequestInterface, and a ResponseInterface. The ActionHandler then acts as a mediator to direct the interaction between the three callables, and returns a modified ResponseInterface.

统计信息

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

GitHub 信息

  • Stars: 30
  • Watchers: 6
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-06-25