2017 © Pedro Peláez
 

library bugsnag-cilex

The Bugsnag middleware for Cilex

image

evolution7/bugsnag-cilex

The Bugsnag middleware for Cilex

  • Monday, November 17, 2014
  • by evolution7
  • Repository
  • 3 Watchers
  • 0 Stars
  • 36 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Bugsnag Middleware for Cilex

The Bugsnag middleware for Cilex integrates into Cilex PHP applications., (*1)

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., (*2)

The Bugsnag middleware for Cilex supports Cilex 1.1+ and PHP 5.3+., (*3)

Installation

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

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

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

    curl -sS https://getcomposer.org/installer | php
    
  3. Install your Composer dependencies:, (*7)

    php composer.phar install
    
  4. Set up Composer's autoloader:, (*8)

    require_once 'vendor/autoload.php';
    

You're done! See the example application below that demonstrates basic usage., (*9)

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']., (*10)

The Versions

17/11 2014

dev-master

9999999-dev http://github.com/evolution7/bugsnag-cilex

The Bugsnag middleware for Cilex

  Sources   Download

MIT

The Requires

 

logging errors tracking exceptions bugsnag

17/11 2014

1.0.0

1.0.0.0 http://github.com/evolution7/bugsnag-cilex

The Bugsnag middleware for Cilex

  Sources   Download

MIT

The Requires

 

logging errors tracking exceptions bugsnag