定制 callmeleon167/debugphp 二次开发

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

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

callmeleon167/debugphp

Composer 安装命令:

composer require callmeleon167/debugphp

包简介

Real-time PHP debugging in the browser — zero config, zero dependencies, just send() and see.

README 文档

README

DebugPHP

Real-time PHP debugging in the browser.

DebugPHP streams your debug output to a browser-based dashboard via Server-Sent Events — no page reloads, no desktop apps, no configuration headaches.

License: MIT PHP Version Packagist Downloads

DebugPHP Demo

Why DebugPHP?

dd() / var_dump() Xdebug Spatie Ray DebugPHP
Real-time output
No page disruption
Zero config
Browser-based
Free & open source ❌ ($49/yr)
No dependencies

Installation

composer require callmeleon167/debugphp --dev

Requirements: PHP 8.1+ and the curl extension.

Quick Start

use DebugPHP\Debug;

// 1. Initialize with your session token from the dashboard
Debug::init('your-session-token');

// 2. Send anything
Debug::send('Hello DebugPHP!');
Debug::send($user);
Debug::send($request->all());

Open the Dashboard in your browser — your debug data appears in real-time.

Self-Hosted

Want to keep your debug data on your own server? Use the DebugPHP Server:

Option A — PHP built-in server

git clone https://github.com/CallMeLeon167/debugphp-server.git
cd debugphp-server
composer install
php -S localhost:8787

Then point your configuration to your local server:

Debug::init('your-session-token', [
    'host' => 'http://localhost:8787',
]);

Option B — Docker

git clone https://github.com/CallMeLeon167/debugphp-server.git
cd debugphp-server
docker compose up

Enable auto-detection so the client finds the server automatically:

Debug::init('your-session-token', [
    'dockerized' => true,
]);

How It Works

  1. Your PHP app sends debug data via HTTP to the DebugPHP server.
  2. The server stores the entry and pushes it to the dashboard via SSE.
  3. The browser dashboard renders the entry in real-time.
┌──────────────┐     POST /api/debug     ┌──────────────┐     SSE Stream     ┌──────────────┐
│   Your App   │ ──────────────────────→ │   DebugPHP   │ ────────────────→  │  Dashboard   │
│  Debug::send │                         │    Server    │                    │   (Browser)  │
└──────────────┘                         └──────────────┘                    └──────────────┘

Contributing

Please read CONTRIBUTING.md before opening a pull request.

License

MIT — see LICENSE for details.

Links

统计信息

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

GitHub 信息

  • Stars: 101
  • Watchers: 1
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固