定制 eca-devtools/docsystem 二次开发

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

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

eca-devtools/docsystem

Composer 安装命令:

composer require eca-devtools/docsystem

包简介

In-app documentation and tracking system per URL/page for development environments.

README 文档

README

Development-only in-app documentation and activity tracking system, per URL/page.

DocSystem floating button

Features

Feature Details
📄 Page docs Each URL gets its own doc record, auto-detected
🔖 Versioning Multiple versions per page (title, description, author)
📅 Timeline Full activity log with metadata
📝 Notes Types: avance, pregunta, error, nota
📎 Files Upload files with version history
🔍 Diff viewer Line-by-line diff for text files (LCS algorithm)
🛡️ Dev only Auto-disabled in production environment
🧹 Purge One-command full cleanup

Requirements

  • PHP 8.3+
  • Laravel 11 / 12 / 13
  • Livewire v3 or v4
  • Tailwind CSS (already in your project)

Installation

1. Require the package

composer require eca-devtools/docsystem

2. Publish and run migrations

php artisan vendor:publish --tag=docsystem-migrations
php artisan migrate

3. (Optional) Publish config

php artisan vendor:publish --tag=docsystem-config

The floating button is injected automatically into every HTML response for authenticated users in non-production environments — no layout changes needed.

4. Add Tailwind source (required for compiled CSS setups)

If your project uses Tailwind with a compiled build (Vite / webpack), the panel's utility classes won't be generated unless you tell Tailwind to scan the package views. Add this line to your CSS entry file (e.g. resources/css/app.css):

@source '../../vendor/eca-devtools/docsystem/resources/views/**/*.blade.php';

Then rebuild your assets:

npm run build
# or, during development:
npm run dev

If you skip this step the button will be injected into the HTML but will appear invisible due to missing styles.

Usage

  1. Visit any page while authenticated.
  2. A floating indigo button appears in the bottom-right corner.
  3. Click it to open the panel.

Tabs

Tab Actions
Documentation Create / edit version records with title, version number & description
Timeline Read-only activity log ordered by newest first
Notes Add typed notes (avance, pregunta, error, nota)
Files Upload files, add new versions, download, or compare (diff) text files

File diff

For text-based files (.txt, .md, .json, .php, .js, etc.) a Diff button appears between versions. It renders a side-by-side line-level comparison using a built-in LCS algorithm — no external library required.

Configuration (config/docsystem.php)

return [
    'enabled'          => env('DOCSYSTEM_ENABLED', true),
    'storage_path'     => env('DOCSYSTEM_STORAGE_PATH', 'doc-system'),
    'max_file_size'    => env('DOCSYSTEM_MAX_FILE_SIZE', 10240), // KB
    'text_extensions'  => ['txt','md','json','php','js','ts', ...],
    'note_types'       => ['avance','pregunta','error','nota'],
    'event_types'      => ['created','updated','note_added','file_uploaded',
                           'file_updated','file_deleted'],
];

Commands

Purge (cleanup)

php artisan docsystem:purge

This command:

  • Only runs in local / non-production environments
  • Asks for explicit confirmation
  • Drops all package database tables (doc_pages, doc_versions, doc_events, doc_notes, doc_files, doc_file_versions)
  • Deletes all files from storage/app/public/doc-system

Database tables

Table Description
doc_pages One record per unique URL path
doc_versions Version history per page
doc_events Timeline / activity log
doc_notes Typed notes per page
doc_files Logical file entities (groups versions)
doc_file_versions Individual uploaded file versions

Screenshots (placeholders)

Floating button Floating button

Documentation tab Documentation tab

Timeline tab Timeline tab

Notes tab Notes tab

Files + Diff tab Files tab

Production safety

The package automatically refuses to boot if:

app()->environment('production') === true

No routes, no Livewire components, no commands will be registered in production. Zero overhead.

Uninstall

# 1. Run purge to clean database tables and files
php artisan docsystem:purge

# 2. Remove the package
composer remove eca-devtools/docsystem

# 3. Remove the component tag from your layout
# (delete the <livewire:docsystem-panel /> line)

# 4. (Optional) Remove published config
rm config/docsystem.php

License

MIT

eca-devtools/docsystem 适用场景与选型建议

eca-devtools/docsystem 是一款 基于 Blade 开发的 Composer 扩展包,目前已累计 5 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 03 月 28 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 eca-devtools/docsystem 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 eca-devtools/docsystem 我们能提供哪些服务?
定制开发 / 二次开发

基于 eca-devtools/docsystem 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

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