定制 pinoox/pinx-inspector 二次开发

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

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

pinoox/pinx-inspector

Composer 安装命令:

composer require pinoox/pinx-inspector

包简介

Development-only Pinx Inspector dashboard for Pinoox single-app projects

README 文档

README

Development-only graphical inspector for Pinoox single-app projects.

Pinx Inspector gives developers a local dashboard for the current app: database connections, tables, rows, visual queries, migrations, routes, logs, config, environment values, views, language files, Pinker cache, and build/release workflows.

Install it in applications as a dev dependency:

composer require --dev pinoox/pinx-inspector

Then run:

pinx dev

Open the inspector at:

http://127.0.0.1:8000/~inspector

pinx-cli mounts this package during local development. It is not required in production and should stay in require-dev.

Database and DevDB

Inspector reads the active development connection instead of being limited to a single storage backend.

  • DB_CONNECTION=mysql, pgsql, or sqlite uses the configured PDO connection.
  • DB_CONNECTION=auto follows the app fallback behavior.
  • DB_CONNECTION=devdb is shown as DevDB in the UI.
  • DevDB uses SQLite when pdo_sqlite is available and automatically falls back to zero-dependency JSON storage when it is not.
  • DevDB JSON raw SQL execution is enabled when pinoox/devdb is installed, using the official DevDB SQL translator.

If a real connection is not reachable, the Connections page still opens and shows the connection error instead of hiding the rest of the Inspector.

Structure

  • resources/router.php serves the local-only API and the Inspector HTML shell.
  • resources/views/ contains small PHP view partials. Twig is intentionally not required yet, so pinx dev does not need extra runtime dependencies.
  • resources/assets/inspector.js contains the browser runtime for navigation, actions, copy buttons, and panels.
  • resources/assets/inspector.css is built locally and must not use a CDN.

Publishing

This package is intended to live in its own repository:

https://github.com/pinoox/pinx-inspector

Use a normal Packagist install in apps:

{
  "require-dev": {
    "pinoox/pinx-inspector": "^1.0"
  }
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-07-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固