Create Github issues from your catch {} blocks. I was heavily inspired by ohCrash.
When you call Tissue::create, a Github issue is created in the repo of your choice and a "bug" label is automatically applied. Duplicates are detected, to a certain extent.
The name comes from "Throw ISSUE" — genius, I know.
$ composer require bouiboui/tissueCopy config/config.yaml.dist, update it and save as config/config.yaml
# Not shown: include composer's autoload.php
use bouiboui\Tissue\Tissue;
try {
throw new ErrorException('This is your issue title and message.');
} catch (\ErrorException $e) {
$result = Tissue::create(
$e->getMessage(),
$e->getCode(),
$e->getSeverity(),
$e->getFile(),
$e->getLine(),
$e->getTraceAsString()
);
}Creates the following issue:
All parameters are optional. For security purposes, think twice before setting the trace parameter if your Github repository is public, unless you want strangers on the Internet to know the full path to your files on your server.
Unlicense. Public domain, basically. Please treat it kindly. See License File for more information.