evolution7/bugsnag-cilex 问题修复 & 功能扩展

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

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

evolution7/bugsnag-cilex

最新稳定版本:1.0.0

Composer 安装命令:

composer require evolution7/bugsnag-cilex

包简介

The Bugsnag middleware for Cilex

README 文档

README

The Bugsnag middleware for Cilex integrates into Cilex PHP applications.

Bugsnag captures errors in real-time from your web, mobile and desktop applications, helping you to understand and resolve them as fast as possible. Create a free account to start capturing errors from your applications.

The Bugsnag middleware for Cilex supports Cilex 1.1+ and PHP 5.3+.

Installation

To get this middleware in to an existing project, the best way is to use Composer.

  1. Add bugsnag/bugsnag-cilex as a Composer dependency in your project's composer.json file:

    {
      "require": {
        "evolution7/bugsnag-cilex": "*"
      }
    }
  2. If you haven't already, download and install Composer:

    curl -sS https://getcomposer.org/installer | php
  3. Install your Composer dependencies:

    php composer.phar install
  4. Set up Composer's autoloader:

    require_once 'vendor/autoload.php';

You're done! See the example application below that demonstrates basic usage.

Example application

<?php
require_once __DIR__.'/vendor/autoload.php';

$app = new Cilex\Application();

$app->register(new Bugsnag\Cilex\Provider\BugsnagServiceProvider, array(
    'bugsnag.options' => array(
        'apiKey' => '066f5ad3590596f9aa8d601ea89af845'
    )
));

$app->get('/hello/{name}', function($name) use($app) {
    throw new Exception("Hello!");
    return 'Hello '.$app->escape($name);
});

$app->run();

If you want to access the bugsnag client directly (for example, to configure it or to send a crash report manually), you can use $app['bugsnag'].

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固