定制 debugmate/php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

debugmate/php

最新稳定版本:1.0.0

Composer 安装命令:

composer require debugmate/php

包简介

A Freemium package to help you tracking your project errors

README 文档

README

Debugmate is a beautiful error tracking package that will help your software team to track and fix errors.

Composer Installation

This package is compatible with PHP 7.3 or greater.

Add these lines to the composer.json file in your project root:

"repositories": [
   {
      "type": "composer",
      "url": "https://devsquad.repo.repman.io"
   }
]

Create the auth.json file with this content in your project root:

{
    "http-basic": {
        "devsquad.repo.repman.io": {
            "username": "1fc2d46ccf0406664c6427da36c26c3bebadd220b86ff7aed078def2ca03ebd6",
            "password": "1fc2d46ccf0406664c6427da36c26c3bebadd220b86ff7aed078def2ca03ebd6"
        }
    }
}

Now you can install the package:

composer require debugmate/php

Configuration

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

Testing

You're able to send a fake error to the Debugmate as a test by running this command:

./vendor/bin/debugmate test

Set logged user

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'...];
});

Reporting Unhandled Exceptions

To ensure all unhandled errors and exceptions are automatically reported to Debugmate, register our exception handler with the following code:

\Debugmate\Exceptions\Handler::register()

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-09-11