feline-studio / laravel-slack-reporter
This package is abandoned and no longer maintained.
No replacement package was suggested.
v1.0.1
2022-02-09 14:50 UTC
Requires
- php: ^8.0
- guzzlehttp/guzzle: ^7.3
- illuminate/support: ^8.0|^9.0
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.0
README
Report website error to Slack channel.
Deprecated: Please use Laravel's Slack logging channel instead!
Installation
You can install the package via composer:
composer require feline-studio/laravel-slack-reporter
You will need to publish the config file of this package with this command:
php artisan vendor:publish --provider="FelineStudio\SlackReporter\SlackReporterServiceProvider"
The config file will be published in config/slack-reporter.php
.
You will need to edit the config file and setup the Slack's incoming webhook url.
After configuring the package, you can use it to handle error by modifying the register
function in App\Exceptions\Handler
.
/** * Register the exception handling callbacks for the application. * * @return void */ public function register() { $this->reportable(function (Throwable $e) { SlackReporterFacade::handle($e); }); }
Testing
composer test
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email david@feline.studio instead of using the issue tracker.
Credits
License
The GNU GPLv3. Please see License for more information.