{"id":15296300,"url":"https://github.com/freshbitsweb/slack-error-notifier","last_synced_at":"2025-04-13T19:31:15.200Z","repository":{"id":62507356,"uuid":"113052287","full_name":"freshbitsweb/slack-error-notifier","owner":"freshbitsweb","description":"Send a message to a Slack channel when an error occurs in your Laravel Application (Laravel 5.5)","archived":false,"fork":false,"pushed_at":"2019-01-10T23:58:24.000Z","size":83,"stargazers_count":49,"open_issues_count":0,"forks_count":11,"subscribers_count":4,"default_branch":"5.5","last_synced_at":"2024-10-31T22:22:56.467Z","etag":null,"topics":["error-reporting","laravel","laravel-5-package","notification-service","php","php7","slack","slack-api","slack-notifications","slack-webhook"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/freshbitsweb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-04T14:23:42.000Z","updated_at":"2023-04-18T01:17:28.000Z","dependencies_parsed_at":"2022-11-02T13:16:13.637Z","dependency_job_id":null,"html_url":"https://github.com/freshbitsweb/slack-error-notifier","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freshbitsweb%2Fslack-error-notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freshbitsweb%2Fslack-error-notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freshbitsweb%2Fslack-error-notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freshbitsweb%2Fslack-error-notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/freshbitsweb","download_url":"https://codeload.github.com/freshbitsweb/slack-error-notifier/tar.gz/refs/heads/5.5","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223602673,"owners_count":17171952,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["error-reporting","laravel","laravel-5-package","notification-service","php","php7","slack","slack-api","slack-notifications","slack-webhook"],"created_at":"2024-09-30T18:09:59.986Z","updated_at":"2024-11-07T23:03:14.277Z","avatar_url":"https://github.com/freshbitsweb.png","language":"PHP","readme":"![Slack Error Notifier](./slack-error-notifier.png \"Slack Error Notifier\")\n\n# Slack Error Notifier (Alternative to *Bugsnag/Sentry*) (Laravel 5.5)\nIf you can't use *Bugsnag* or *Sentry* for monitoring your **production Laravel application**, here is a really simple solution to get notified when anything goes wrong.\n\nThis is a *plug-and-play* Laravel package to send a message to a Slack channel via an [Incoming WebHook](https://api.slack.com/incoming-webhooks) when error/exception occurs in your application.\n\n\n**Note**: Logging feature had major updates in Laravel 5.6. you may use [Laravel Log Enhancer](https://github.com/freshbitsweb/laravel-log-enhancer) package for it.\n\n\n## Requirements\n\n* PHP 7.0+\n* Laravel 5.5\n\n## Installation\n\n1) Install the package by running this command in your terminal/cmd:\n```\ncomposer require freshbitsweb/slack-error-notifier\n```\n\n2) Import config file by running this command in your terminal/cmd:\n```\nphp artisan vendor:publish --tag=slack-error-notifier-config\n```\n\n3) Create an [Incoming WebHook](https://my.slack.com/services/new/incoming-webhook/) in your Slack account and put *Webhook URL* in your .env file for **SLACK_WEBHOOK_URL** variable\n```\nSLACK_WEBHOOK_URL=https://hooks.slack.com/services/XXXXXXXXX/XXXXXXXXX/xxxxxxxxxxxxxxxxxxxxxxxx\n```\n\n4) Optinal: Change configuration settings:\n* (bool) add_memory_usage =\u003e Set to *true* if you wish to send memory usage in the slack message\n\n* (bool) add_request_headers =\u003e Set to *true* if you wish to send request headers in the slack message\n\n* (bool) add_session_data =\u003e Set to *true* if you wish to send session data in the slack message\n\n* (bool) add_input_data =\u003e Set to *true* if you wish to send input data in the slack message\n\n* (array) ignore_request_fields =\u003e If input data is being sent, you can specify the inputs from the user that should not be sent to Slack for example, password,cc number, etc.\n\n* (env) SLACK_LOG_LEVEL =\u003e Specify minimum error level (#1) to notify slack.\n\nAnd it's done. Yeah, that simple. Here's a video demo for a quick look:\n\n[![Youtube Video](./youtube-thumb.png \"Youtube Video\")](https://www.youtube.com/watch?v=jeljU856bzE)\n\n#### Note\nThis package uses *Monolog* library and sends a notification message based on the [**log_level**](https://laravel.com/docs/5.5/errors#log-severity-levels) configuration setting. So, if you set it to *alert*, only alert and emergency level errors will be considered.\n\n## Authors\n\n* [**Gaurav Makhecha**](https://github.com/gauravmak) - *Initial work*\n\nSee also the list of [contributors](https://github.com/freshbitsweb/slack-error-notifier/graphs/contributors) who participated in this project.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n\n## Special Thanks to\n\n* Laravel Community\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreshbitsweb%2Fslack-error-notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreshbitsweb%2Fslack-error-notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreshbitsweb%2Fslack-error-notifier/lists"}