承接 juliangut/slim-booboo-middleware 相关项目开发

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

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

juliangut/slim-booboo-middleware

最新稳定版本:0.1

Composer 安装命令:

composer require juliangut/slim-booboo-middleware

包简介

Slim Framework BooBoo middleware

README 文档

README

Build Status Code Climate Scrutinizer Code Quality Code Coverage Latest Stable Version Total Downloads

Juliangut Slim Framework BooBoo handler middleware

BooBoo error handler middleware for Slim Framework.

Uses BooBoo error handler library by The PHP League

Installation

Best way to install is using Composer:

php composer.phar require juliangut/slim-booboo-middleware

Then require_once the autoload file:

require_once './vendor/autoload.php';

Usage

Add as middleware. BooBoo middleware will automatically register BooBoo to handle errors.

BooBooMiddleware can handle creation of formatters.

use Slim\Slim;
use Jgut\Slim\Middleware\BooBooMiddleware;

$app = new Slim();
$app->add((new BooBooMiddleware())
    ->addFormatter('command-line')
    ->addFormatter('\League\BooBoo\Formatter\NullFormatter', E_NOTICE)
);

But BooBoo Middleware cannot handle creation of handlers.

use Slim\Slim;
use Jgut\Slim\Middleware\BooBooMiddleware;

$yourHandler = new \yourHandler();

$app = new Slim();
$app->add((new BooBooMiddleware())
    ->addFormatter('null', E_NOTICE)
    ->addHandler($yourHandler)
);

Contributing

Found a bug or have a feature request? Please open a new issue. Have a look at existing issues before

See file CONTRIBUTING.md

License

Release under BSD-3-Clause License.

See file LICENSE included with the source code for a copy of the license terms

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-03-15