bipinkareparambil / slack-bug-reporting
Slack Bug Reporting Laravel Package
Installs: 2 262
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=7.4
- guzzlehttp/guzzle: ^7.0
README
This Laravel package allows you to report bugs to Slack for easy tracking and collaboration.
Installation
To install the package, follow these steps:
-
Require the package using Composer:
composer require bipinkareparambil/slack-bug-reporting
-
Set up the environment variable:
In your .env file, add the following variable and set its value to the webhook URL of your Slack app
SLACK_BUG_REPORTING_WEBHOOK="https://hooks.slack.com/services/{remaining_url_part}"
You're ready to use the Slack Bug Reporting package in your Laravel application!
Usage
To report bugs to Slack, you can use the SlackBugReportingService provided by the package. Here's an example of how to use it:
use BipinKareparambil\SlackBugReporting\SlackBugReportingService; // Create an instance of the SlackBugReportingService $slackBugReporting = new SlackBugReportingService(); // Send a bug report message $message = "Bug report message..."; $response = $slackBugReporting->send($message);