2017 © Pedro Peláez
 

kohana-module kohana-errbit

Errbit integration for Kohana 3.3

image

kwn/kohana-errbit

Errbit integration for Kohana 3.3

  • Saturday, November 23, 2013
  • by kwn
  • Repository
  • 1 Watchers
  • 3 Stars
  • 31 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Errbit integration for Kohana 3.3

Installation

Use composer..., (*1)

require: {
    [...]
    "kwn/kohana-errbit": "dev-3.3/master"
}

...or clone repository to your /modules/ directory, (*2)

git clone git://github.com/kwn/kohana-errbit.git

and enable module in application/bootstrap.php, (*3)

Kohana::modules(array(
    [...]
    'kohana-errbit'  => MODPATH.'kohana-errbit',
));

Configuration

Copy /modules/kohana-errbit/config/errbit.php to /application/config/ and fill config file with your settings., (*4)

return array(
    'api_key' => 'PUT YOUR ERRBIT API KEY HERE',
    'host'    => 'errbit.yourdomain.com',
    'port'    => 80,
    'min_env' => Kohana::DEVELOPMENT
);

Remember to change min_env to value lower than Kohana::DEVELOPMENT (ie. Kohana::STAGING), to avoid Errbit requests during development., (*5)

Remember to set Kohana environment in your vhost:, (*6)

<VirtualHost *:80>
    DocumentRoot /var/www/vhosts/com.application/httpdocs
    ServerName application.com

    SetEnv KOHANA_ENV PRODUCTION
</VirtualHost>

Of course you need to configure your Errbit, to handle requests from application., (*7)

Ready!

This module registers Kohana Log driver, that handles Errbit notifications on exceptions, and registers error handlers:, (*8)

set_error_handler();
set_exception_handler();
register_shutdown_function();

This module uses emgiezet/errbitPHP vendor. Check https://github.com/emgiezet/errbitPHP for more information., (*9)

The Versions

23/11 2013

dev-3.3/master

dev-3.3/master https://github.com/kwn/kohana-errbit

Errbit integration for Kohana 3.3

  Sources   Download

MIT

The Requires

 

by Avatar kwn

airbrake kohana errbit errbit php