iamsabbiralam/ghost-notes
Composer 安装命令:
composer require iamsabbiralam/ghost-notes
包简介
A Laravel package to generate a dev-diary from @ghost tags in your code.
README 文档
README
💡 Tip for Devs: Place a beautiful terminal-to-dashboard showcase GIF right here to skyrocket your GitHub Stars!
GhostNotes is a powerful Laravel utility that scans your codebase for hidden tags like @ghost, @todo, or @fixme, automatically parses their type/priority, and compiles them into a beautiful, organized developer diary, multi-format reports, and a modern two-column Split-View Web Dashboard.
✨ Features
- 🔍 Advanced Tag Scanning: Automatically finds
@ghost,@todo,@fixme, and@noteacross multiple directories. - 🏷️ Type-Based Classification: Group your debt into clear buckets using formats like
@ghost:fix,@ghost:feature, or@ghost:breaking. - 📊 Priority Levels: Assign critical tasks using priority modifiers (
:high,:medium,:low). - 🎨 Premium Split-View Dashboard: A modern, Telescope-like two-column layout featuring sidebar file navigation, quick searching, and interactive source code snippet expanders.
- 📋 Multi-Format Export:** Instantly export reports to Markdown, JSON, or CSV (Excel-compatible).
- 🏆 Resolved Graveyard: Automatically archives resolved entries into a "Resolved Ghosts" history board after code cleanup.
- 🚀 VS Code & GitHub Integration: One-click links to jump directly to the exact file line inside VS Code or open it on GitHub.
- 👤 Git Context Awareness: Automatically identifies the blame author using local
git blame. - 🧹 Smart Code Cleanup: Safely strips tags from source files via the
--clearflag once they are logged. - 🔒 Safe Environment Protections: Web dashboard access and route components are automatically disabled in production.
💻 Requirements & Compatibility
- PHP:
^8.0 - Laravel Framework:
10.x,11.x, and12.x(Fully Tested & Supported)
🚀 Installation
Install the package via composer:
composer require iamsabbiralam/ghost-notes
Set up everything with a single command:
php artisan ghost:install
This command publishes the configuration file and prepares internal architecture files.
🛠️ Usage
- Adding Tags in Code Write clean, organized notes by combining tags, specific types, and priority levels:
// Standard tag with category type and priority modifier:
// @ghost:feature:high: Implement API authentication system
// @ghost:fix: Crashing issue on checkout invoice action
// Works perfectly with standard developer tags too:
// @todo:medium: Implement the user profile file update logic
// @fixme: Minor styling alignment issue on the footer
// @note: This is a general architectural context reminder
- Generating the Diary & Syncing Dashboard Run the compiler command to parse your project codebase and sync the interactive cache:
php artisan ghost:write
- Exporting Reports Generate standard standalone report formats:
php artisan ghost:write --format=markdown php artisan ghost:write --format=json php artisan ghost:write --format=csv
- Clearing and Archiving Log active entries into the Resolved Graveyard history file and strip them out from source files safely:
php artisan ghost:write --clear
🖥️ Web Dashboard Visit your interactive local GUI hub at: http://your-app.test/ghost-notes
Inside the Dashboard UI you can:
-
📂 File Navigator: Select specific controllers/files from the left panel to filter active entries seamlessly.
-
🔍 Smart Live Search: Filter notes on-the-fly by specific author name, category types, messages, or files.
-
🖱️ Deep Linking: Open target files directly onto your IDE workspace layout via VS Code protocols.
-
🖨️ Print Reports: Trigger a fully optimized blueprint layout stylesheet to print structured PDF portfolios.
⚙️ Configuration Customize scanning scopes inside your published config/ghost-notes.php architecture profile:
return [ 'tags' => ['@ghost', '@todo', '@fixme', '@note'], 'filename' => 'GHOST_LOG.md', // Directories to target during scans 'scan_directories' => [ 'app', 'routes', 'resources/views', ], // File target extensions to check 'allowed_extensions' => ['php', 'blade.php', 'js'], 'ignore_folders' => ['vendor', 'node_modules', 'storage', 'tests'], 'git_context' => true, 'repo_url' => env('GHOST_NOTES_REPO_URL', ''), // Auto-detected if empty 'default_branch' => 'main', ];
🤝 Contributing Contributions are welcome! If you have any ideas, feel free to open an issue or submit a pull request. 📄 License The MIT License (MIT). Please see the License File for more information.
Developed with ❤️ by Sabbir Alam
iamsabbiralam/ghost-notes 适用场景与选型建议
iamsabbiralam/ghost-notes 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 6 次下载、GitHub Stars 达 2, 最近一次更新时间为 2025 年 12 月 16 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 iamsabbiralam/ghost-notes 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 iamsabbiralam/ghost-notes 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 29
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-16

