Debugmate is a beautiful error tracking package that will help your software team to track and fix errors.
This package is compatible with PHP 7.3 or greater.
"repositories": [
{
"type": "composer",
"url": "https://devsquad.repo.repman.io"
}
]
{
"http-basic": {
"devsquad.repo.repman.io": {
"username": "1fc2d46ccf0406664c6427da36c26c3bebadd220b86ff7aed078def2ca03ebd6",
"password": "1fc2d46ccf0406664c6427da36c26c3bebadd220b86ff7aed078def2ca03ebd6"
}
}
}
composer require debugmate/php
So that the debugmate can send the errors to the application you need to define this environment configuration in your .env file
DEBUGMATE_DOMAIN=http://fake-debugmate.app/
DEBUGMATE_TOKEN=project-token
You're able to send a fake error to the Debugmate as a test by running this command:
./vendor/bin/debugmate test
Using the function below when reporting an error, the debugmate will send the data of the logged in user according to what was returned by Closure.
\Debugmate\Debugmate::setUser(function() {
return ['name'=>'name', 'email'=>'user@email.com'...];
});
To ensure all unhandled errors and exceptions are automatically reported to Debugmate, register our exception handler with the following code:
\Debugmate\Exceptions\Handler::register()