PHPackages                             jason-gao/socketlog - 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. [API Development](/categories/api)
4. /
5. jason-gao/socketlog

ActiveLibrary[API Development](/categories/api)

jason-gao/socketlog
===================

debug tool for api , ajax,wechat ,v2.2

v2.2.3(8y ago)2421MITPHPPHP &gt;=5.4.0

Since Dec 8Pushed 8y ago1 watchersCompare

[ Source](https://github.com/jason-gao/SocketLog)[ Packagist](https://packagist.org/packages/jason-gao/socketlog)[ RSS](/packages/jason-gao-socketlog/feed)WikiDiscussions master Synced yesterday

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

\#说明

- readme:
- composer require "jason-gao/socketlog:v2.2.2"
- 2种方法使用slog

```

require __ROOT__.'/vendor/autoload.php';

\SocketLog\Slog::config(array(
	'host'=>'192.168.5.188',//websocket服务器地址，默认localhost
	'optimize'=>true,//是否显示利于优化的参数，如果运行时间，消耗内存等，默认为false
	'show_included_files'=>true,//是否显示本次程序运行加载了哪些文件，默认为false
	'error_handler'=>true,//是否接管程序错误，将程序错误显示在console中，默认为false
	'force_client_id'=>'',//日志强制记录到配置的client_id,默认为空
	'allow_client_ids'=>array(123)//限制允许读取日志的client_id，默认为空,表示所有人都可以获得日志。
));

 slog(array(
	'host'=>'192.168.5.188',//websocket服务器地址，默认localhost
	'optimize'=>true,//是否显示利于优化的参数，如果运行时间，消耗内存等，默认为false
	'show_included_files'=>true,//是否显示本次程序运行加载了哪些文件，默认为false
	'error_handler'=>true,//是否接管程序错误，将程序错误显示在console中，默认为false
	'force_client_id'=>'',//日志强制记录到配置的client_id,默认为空
	'allow_client_ids'=>array(123)//限制允许读取日志的client_id，默认为空,表示所有人都可以获得日志。
	),'config');

```

- 启动服务端的node index.js服务
- 安装chrome插件配置ws连接到node服务
- 可以开始进行调试了
- 20180212-添加错误级别控制

    - 默认 define('**ERROR\_HANDLE\_LEVEL\_SOCKETLOG**', E\_ALL);
    - 项目入口文件定义错误级别define('**ERROR\_HANDLE\_LEVEL\_SOCKETLOG**', E\_ALL ^ E\_WARNING ^E\_NOTICE);

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 90.3% 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 ~266 days

Total

4

Last Release

3012d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dfe2039308a3330d27c5042b04fb30b92751dd44f57a766524d0e6819dd77cf7?d=identicon)[jason-gao](/maintainers/jason-gao)

---

Top Contributors

[![luofei614](https://avatars.githubusercontent.com/u/1470647?v=4)](https://github.com/luofei614 "luofei614 (121 commits)")[![jason-gao](https://avatars.githubusercontent.com/u/9896574?v=4)](https://github.com/jason-gao "jason-gao (6 commits)")[![leeeboo](https://avatars.githubusercontent.com/u/877939?v=4)](https://github.com/leeeboo "leeeboo (3 commits)")[![Zjmainstay](https://avatars.githubusercontent.com/u/3349634?v=4)](https://github.com/Zjmainstay "Zjmainstay (2 commits)")[![shanhuhai](https://avatars.githubusercontent.com/u/2910488?v=4)](https://github.com/shanhuhai "shanhuhai (1 commits)")[![yangweijie](https://avatars.githubusercontent.com/u/1614114?v=4)](https://github.com/yangweijie "yangweijie (1 commits)")

---

Tags

debugapiSocketLogslog

### Embed Badge

![Health badge](/badges/jason-gao-socketlog/health.svg)

```
[![Health](https://phpackages.com/badges/jason-gao-socketlog/health.svg)](https://phpackages.com/packages/jason-gao-socketlog)
```

###  Alternatives

[luofei614/socketlog

debug tool for api , ajax,wechat ,v2.3

1.1k1.6k](/packages/luofei614-socketlog)[m165437/laravel-blueprint-docs

API Blueprint Renderer for Laravel

22779.0k](/packages/m165437-laravel-blueprint-docs)

PHPackages © 2026

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