2017 © Pedro Peláez
 

library laravel-tracetoslack

Send your traceback on a channel of slack

image

lfelin/laravel-tracetoslack

Send your traceback on a channel of slack

  • Thursday, July 14, 2016
  • by LFelin
  • Repository
  • 1 Watchers
  • 0 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Laravel Trace to Slack

License Latest Stable Version Total Downloads, (*1)


For Laravel 4.2, use the 4.2 branch


About

Trace to slack is a simple package for laravel to notify the errors of your application in slack https://slack.com/, (*2)

Installation

Pull this package in through Composer., (*3)


{ "require": { "lfelin/laravel-tracetoslack": "1.*" } }

Dump your autoload, (*4)

composer dump-autoload -o

Laravel 5.* Integration

Add the service provider to your config/app.php file:, (*5)


'providers' => array( //... Lfelin\TraceToSlack\TraceToSlackServiceProvider::class, ),

In your app/Exceptions/Handler.php file:, (*6)

Replace, (*7)

use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;

by, (*8)

use Lfelin\TraceToSlack\Handler as ExceptionHandler;

Configuration

Publish configuration, (*9)

php artisan vendor:publish

In your config/tracetoslack.php file configure the parameters. The parameter webhook_url is required :, (*10)


return array( /* |-------------------------------------------------------------------------- | Notify on debug |-------------------------------------------------------------------------- | Default: false | The notifications are also sent if the debug mode is activated [true] | */ 'active_on_debug' => false, /* |-------------------------------------------------------------------------- | Your private Webhook URL |-------------------------------------------------------------------------- | [Required] | Eg: https://hooks.slack.com/services/XXX/XXX | */ 'webhook_url' => 'https://hooks.slack.com/services/XXX/XXX', /* |-------------------------------------------------------------------------- | Username |-------------------------------------------------------------------------- | [Optional] | Default: John Bot | */ 'username' => '', /* |-------------------------------------------------------------------------- | Emoji |-------------------------------------------------------------------------- | [Optional] | Default: ':warning:' | http://www.emoji-cheat-sheet.com/ for example | */ 'icon_emoji' => '', // default: ':bug:' => http://www.emoji-cheat-sheet.com/ /* |-------------------------------------------------------------------------- | Emoji Url |-------------------------------------------------------------------------- | [Optional] | This param increase icon_emoji | https://slack.com/img/icons/app-57.png for example | */ 'icon_url' => '', /* |-------------------------------------------------------------------------- | Other Channel |-------------------------------------------------------------------------- | [Optional] | Default: The default channel is the one set in the web Hook | This name start by '#' or '@' for Direct Message | Eg: #general - @username | */ 'other_channel' => '', );

Create Incoming WebHooks

Create a new webhook : https://my.slack.com/services/new/incoming-webhook/, (*11)

Documentation : https://api.slack.com/custom-integrations, (*12)

Example on slack

example, (*13)

Suggestions and issues

Use github issues to suggest improvements or reassembling your problems, (*14)

The Versions

14/07 2016

dev-master

9999999-dev

Send your traceback on a channel of slack

  Sources   Download

MIT

The Requires

 

by Ludovic Felin

laravel slack exceptions logs traceback

14/07 2016

v1.0.1

1.0.1.0

Send your traceback on a channel of slack

  Sources   Download

MIT

The Requires

 

by Ludovic Felin

laravel slack exceptions logs traceback

14/07 2016

4.2.x-dev

4.2.9999999.9999999-dev

Send your traceback on a channel of slack

  Sources   Download

MIT

The Requires

 

by Ludovic Felin

laravel slack exceptions logs traceback

14/07 2016

v1.0

1.0.0.0

Send your traceback on a channel of slack

  Sources   Download

MIT

The Requires

 

by Ludovic Felin

laravel slack exceptions logs traceback

14/07 2016

v0.7

0.7.0.0

Send your traceback on a channel of slack

  Sources   Download

MIT

The Requires

 

by Ludovic Felin

laravel slack exceptions logs traceback

14/07 2016

v0.6

0.6.0.0

Send your traceback on a channel of slack

  Sources   Download

MIT

The Requires

 

by Ludovic Felin

laravel slack exceptions logs traceback

03/07 2016

v0.5

0.5.0.0

Send your traceback on a channel of slack

  Sources   Download

MIT

The Requires

 

by Ludovic Felin

laravel slack exceptions logs traceback

02/07 2016

v0.4

0.4.0.0

Send your traceback on a channel of slack

  Sources   Download

MIT

The Requires

 

by Ludovic Felin

laravel slack exceptions logs traceback

01/07 2016

v0.3

0.3.0.0

Send your traceback on a channel of slack

  Sources   Download

MIT

The Requires

 

by Ludovic Felin

laravel slack exceptions logs traceback