PHPackages                             wj008/debug - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. wj008/debug

ActiveLibrary

wj008/debug
===========

beacon framework kernel of PHP

1.0.2(5y ago)011Apache-2.0PHPPHP &gt;=7.0

Since Dec 2Pushed 5y ago1 watchersCompare

[ Source](https://github.com/wj008/debug)[ Packagist](https://packagist.org/packages/wj008/debug)[ RSS](/packages/wj008-debug/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

debug
=====

[](#debug)

安装

composer require wj008/debug

需要配合 调试服务器使用,php socket 端口需要打开

使用：

```
use debug\Logger;

Logger::log("test", "xxxx", 3);
Logger::info("xxxxdsd", ["xxxx"], ["cccc" => "xxx"]);
Logger::log(false);

function a()
{
    throw new \Exception("这个是一个测试错误信息");
}

function b()
{
    a();
}

try {
    b();
} catch (\Exception $e) {
    Logger::error($e->getMessage(), PHP_EOL. $e->getTraceAsString());
}

$time1 = microtime(true);
//执行sql 耗时
usleep(50000);
$time2 = microtime(true);

Logger::sql('select * from table where pid=1 and name="xxxx"', $time2 - $time1);
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

3

Last Release

1992d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e1136fb7327ad96eb854f2c4319f54b9697b8f762fd2cbbcc24bde6ccbbc9c7f?d=identicon)[wj008](/maintainers/wj008)

---

Top Contributors

[![wj008](https://avatars.githubusercontent.com/u/4304017?v=4)](https://github.com/wj008 "wj008 (4 commits)")

### Embed Badge

![Health badge](/badges/wj008-debug/health.svg)

```
[![Health](https://phpackages.com/badges/wj008-debug/health.svg)](https://phpackages.com/packages/wj008-debug)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
