syntexa/module-dev-tools 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

syntexa/module-dev-tools

Composer 安装命令:

composer require syntexa/module-dev-tools

包简介

Lightweight developer tools for Syntexa Framework - monitoring, profiling, and debugging

README 文档

README

Lightweight developer tools for Syntexa Framework - monitoring, profiling, and debugging.

Features

  • Real-time Metrics Dashboard: Monitor Swoole server metrics, application statistics, and memory usage
  • Log Viewer: View and filter application logs in real-time
  • Profiler Integration: View profiler events and performance segments
  • Lightweight: No heavy dependencies like Grafana - simple, fast, and developer-friendly

Installation

The module is automatically available when added to composer.json:

{
    "require": {
        "syntexa/module-dev-tools": "*"
    }
}

Usage

Once installed, access the developer tools at:

http://localhost:9501/dev-tools

Endpoints

  • GET /dev-tools - Main dashboard (HTML interface)
  • GET /dev-tools/api/metrics - JSON metrics endpoint
  • GET /dev-tools/api/logs?file=error.log&lines=100&filter=error - Log viewer API
  • GET /dev-tools/api/profiler?limit=50 - Profiler events API

Features

Metrics Dashboard

  • Swoole Metrics: Connections, workers, requests, coroutines
  • Application Metrics: Request count, errors, uptime
  • Memory Metrics: Current and peak memory usage

Log Viewer

  • View multiple log files
  • Filter logs by keyword
  • Adjust number of lines displayed
  • Real-time updates

Profiler

  • View profiler events from Inspector module
  • See performance segments and durations
  • Filter by event type

Requirements

  • PHP 8.4+
  • Swoole extension
  • Syntexa Inspector module (for profiler functionality)

Development

This module is designed to be lightweight and fast. It reads statistics from JSON files generated by the Swoole server and integrates with the existing Inspector module for profiling.

统计信息

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

GitHub 信息

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

其他信息

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