flyingluscas / laker
Laravel package to track down bugs.
Requires
- php: ~5.6|~7.0
- gentle/bitbucket-api: ^0.8
- illuminate/support: 5.1.*|5.2.*|5.3.*
Requires (Dev)
- mockery/mockery: ^0.9.5
- orchestra/testbench: 3.1.*|3.2.*|3.3.*
- phpunit/phpunit: ~4.0||~5.0
- squizlabs/php_codesniffer: ~2.3
This package is auto-updated.
Last update: 2019-08-25 01:02:29 UTC
README
ATTENTION: This package is no longer maintained, please see the new BugNotifier package.
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.