Download the PHP package manuelluvuvamo/laravel-bug-courier without Composer
On this page you can find all versions of the php package manuelluvuvamo/laravel-bug-courier. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download manuelluvuvamo/laravel-bug-courier
More information about manuelluvuvamo/laravel-bug-courier
Files in manuelluvuvamo/laravel-bug-courier
Package laravel-bug-courier
Short Description A Laravel package to monitor and report bugs.
License MIT
Informations about the package laravel-bug-courier
Laravel Bug Courier
Introduction
laravel-bug-courier is a Laravel package designed to facilitate bug reporting and issue tracking across multiple platforms. It provides a structured way to capture, store, and report bugs using various integrations such as email, Azure DevOps, GitHub, and Trello. The package allows you to configure reporting methods and use predefined services, domain entities, and repositories either independently or in combination.
Installation
To install the package, run the following command:
After installing, publish the configuration file:
This will create a config/bug-courier.php file where you can customize the package settings.
Configuration
Environment Variables
Add the following environment variables to your .env file to configure the package:
Usage
Reporting Bugs Automatically
If BUG_COURIER_AUTOMATIC=true, the package will automatically capture and report application errors. Otherwise, you can manually report bugs using the CreateItemService service.
Manually Reporting Bugs
To manually create a bug report:
Using Services
The package provides the following services:
CreateItemService- Handles bug creation and reporting.
Using Domain Entities
The package includes domain entities to represent bug reports:
Item- Represents a bug in the system.CreateItemDto- Data transfer object for creating a bug report.
Using Infrastructure Repositories
The package provides repositories to interact with various bug tracking systems:
ItemAzureDevopsRepository- Reports bugs to Azure DevOps.ItemGithubRepository- Reports bugs to GitHub.ItemTrelloRepository- Reports bugs to Trello.
You can use a specific repository directly if needed:
Example Workflows
Reporting a Bug via GitHub
Reporting a Bug via Email
Ensure that EMAIL_ENABLED=true and the recipient email is set in .env.
Advanced Configuration
Enabling Only Specific Reporting Methods
You can only use one reporting method at a time. Enable the desired method in .env and disable the others. For example, to use only GitHub:
Queueing Email Reports for Performance
The laravel-bug-courier package allows sending error reports via email either synchronously or asynchronously, depending on the .env configuration.
To define the desired behavior, set the following variable:
If BUG_COURIER_EMAIL_QUEUE=true, the package will send emails using Laravel's queue system. Make sure your application is properly configured for queues in config/queue.php and that a worker is running:
If BUG_COURIER_EMAIL_QUEUE=false, emails will be sent immediately without using queues.
Note: There is no need to modify the CreateItemService. The package is already prepared to work with both options.
Conclusion
laravel-bug-courier provides a structured and flexible way to manage and report bugs in Laravel applications. With support for multiple platforms and easy customization, it can fit into various workflows. Configure the package as needed, use the provided services, domain entities, and repositories, and start tracking bugs efficiently.
For additional details, refer to the config/bug-courier.php file and the BugCourierServiceProvider.php service provider.
Contribution Guide
We welcome contributions to both the package and its documentation.
- đź› To contribute to the package, submit issues and pull requests at Laravel Bug Courier.
- đź“– To improve the documentation, contribute at Laravel Bug Courier Docs.
Bug Reports
If you find a bug in laravel-bug-courier, please open an Issue on GitHub.
Before Submitting a Bug Report
- Search open and closed issues to check if the issue has already been reported.
- If the issue is new, open a new issue and include:
- A clear description of the problem.
- Steps to reproduce the bug.
- Any error messages you encountered.
- The Laravel and PHP versions you are using.
Note: Issues that do not follow this format may be closed without notice.
Coding Standards
This project follows the PSR-1, PSR-4, and PSR-12 coding standards. Ensure your code adheres to these standards before submitting a pull request.
Additionally, we use StyleCI to automatically fix code style issues. You don't need to worry about formatting—StyleCI will handle it when your pull request is merged.
Code of Conduct
This project follows the Laravel Code of Conduct, which is based on the Ruby Code of Conduct. Please adhere to the following guidelines:
- Be respectful of opposing views.
- Ensure your language and actions are free of personal attacks and disparaging remarks.
- Assume good intentions when interpreting others' words and actions.
- Harassment of any kind will not be tolerated.
Branching Strategy
- Bug fixes should be sent to the latest stable version (currently 1.x).
- Minor features that are backward compatible can also be sent to the latest stable version.
- Major features or breaking changes should be sent to the master branch.
Submitting a Pull Request
- Fork the repository and create a new branch from the latest
1.xbranch. - Write clear, well-structured, and tested code.
- Ensure all tests pass before submitting (
vendor/bin/pest). - Open a pull request, providing a detailed description of your changes.
For more details, refer to the project's config/bug-courier.php file and BugCourierServiceProvider.php.
All versions of laravel-bug-courier with dependencies
guzzlehttp/guzzle Version *
illuminate/support Version *
illuminate/http Version *