Rutorika / laravel-slack-alerts by boxfrommars

70
3
6
Package Data
Maintainer Username: boxfrommars
Maintainer Contact: boxfrommars@gmail.com (Dmitry Groza)
Package Create Date: 2015-12-21
Package Last Update: 2016-01-19
Language: PHP
License: MIT
Last Refreshed: 2024-11-11 15:03:09
Package Statistics
Total Downloads: 70
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 3
Total Watchers: 6
Total Forks: 0
Total Open Issues: 0

Scrutinizer Code Quality

Rutorika Laravel Slack Alert Provider

Provides errors logging to the slack

Install

xu@calypso:~$ composer require rutorika/laravel-slack-alerts

Add service provider to config/app.php

'providers' => [
    // other providers...

    Rutorika\LaravelSlackAlert\SlackAlertServiceProvider::class,
]

Publish config

xu@calypso:~$ php artisan vendor:publish --provider="Rutorika\LaravelSlackAlert\SlackAlertServiceProvider"

Add enviroment variables to your .env file (see config/slack-alert.php for defaults)

SLACK_CHANNEL=#dev-alert
SLACK_TOKEN=xxxx-xxxxxxxxxx-xxxxxxxxxx-xxxxxxxxxxx-xxxxxxxxxx
SLACK_NAME="Site Name"
SLACK_MENTION_TO=@username