flyingluscas/laker

Laravel package to track down bugs.


Keywords
bitbucket, issue, bugs, flyingluscas, laker
License
MIT

Documentation

Laker

Latest Version on Packagist Software License StyleCI Build Status Quality Score Total Downloads

Laker is a Laravel 5.2/5.3 package to help you track down bugs.

Laker catches all exceptions fired by Laravel and saves them on Bitbucket as issues.

Install

Via Composer

$ composer require flyingluscas/laker

Usage

1. Service Provider

First thing you need to do is to add the LakerServiceProvider under the providers section on config/app.php

'providers' => [

    // ...

    FlyingLuscas\Laker\LakerServiceProvider::class,

],

2. Configuration

Ok, now that our service provider is in place, we need to set up our configurarion file, run.

$ php artisan vendor:publish --provider="FlyingLuscas\Laker\LakerServiceProvider"

The command above will generate the config/laker.php file.

Option Description
account_slug The slug of your account or team on Bitbucket.
repository_slug The slug of your repository on Bitbucket.
auth Your username and password from Bitbucket.

3. Sending Issues

All Laravel exceptions can be intercepted through the app/Exceptions/Handler.php file.

On this file, go to the report method and add this on the top.

use FlyingLuscas\Laker\Issue;
use FlyingLuscas\Laker\Services\Bitbucket;

public function report(Exception $exception)
{
    $issue = new Issue($exception);
    $bitbucket = new Bitbucket;

    $issue->createOn($bitbucket);

    parent::report($exception);
}

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email lucas.pires.mattos@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.