2017 © Pedro Peláez
 

library slackdroid

Slack boot to send a notification to a slack web-hook whenever a job fails.

image

leorent/slackdroid

Slack boot to send a notification to a slack web-hook whenever a job fails.

  • Sunday, January 28, 2018
  • by LeorentKelmendi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Get a slack notification when a job fails.

This package sends notifications to a slack web-hook if a queued job fails. It leverages Laravel 5.5 notification capabilities., (*1)

Installation

You can install the package via composer:, (*2)

``` bash composer require leorent/slackdroid, (*3)

In order to use slack notification you must install guzzle first.

``` bash
composer require guzzlehttp/guzzle

The service provider will automatically be registered., (*4)

Next, you must publish the config file:, (*5)

php artisan vendor:publish --provider="Leo\DroidJobMonitor\BootJobMonitorServiceProvider"

After vendor publish a new file will be generated under config folder, named boot-job-monitor.php that contains slack web-hook url provided through env file., (*6)

```?php /* * The channel web-hook to which the notification will be sent. */ return [, (*7)

'slack' => [
    'webhook_url' => env('FAILED_JOB_SLACK_WEBHOOK_URL'),
],

], (*8)

```, (*9)

Configuration

Usage

If you configured web-hook url correctly. You'll receive a notification when a queued job fails., (*10)

Testing

TODO, (*11)

License

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

The Versions

28/01 2018

dev-master

9999999-dev

Slack boot to send a notification to a slack web-hook whenever a job fails.

  Sources   Download

MIT

The Requires

 

library jobs queue notification slack failed