承接 iamsabbiralam/ghost-notes 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

iamsabbiralam/ghost-notes

最新稳定版本:v1.0.1

Composer 安装命令:

composer require iamsabbiralam/ghost-notes

包简介

A Laravel package to generate a dev-diary from @ghost tags in your code.

README 文档

README

Latest Version on Packagist Total Downloads License

Ghost Notes Preview

GhostNotes is a powerful Laravel utility that scans your codebase for hidden tags like @ghost, @todo, or @fixme and compiles them into a beautiful, organized developer diary, multi-format reports, and a modern Web Dashboard.

Dashboard Preview

✨ Features

  • 🔍 Advanced Tag Scanning: Automatically finds @ghost, @todo, @fixme, and @note with optional Priority Levels (high|medium|low).
  • 🎨 Modern Dashboard: A sleek, Tailwind-powered dashboard with Search, Priority Badges, and Source Code Snippets.
  • 📊 Multi-Format Export: Export your dev-diary into Markdown, JSON, or CSV (Excel compatible).
  • 🏆 Resolved Graveyard: Track resolved notes in the "Resolved Ghosts" history after clearing them from your code.
  • 🚀 VS Code & GitHub Integration: Open files directly in VS Code from the dashboard or view them on GitHub with line-specific links.
  • 👤 Git Context: Automatically identifies the author using git blame.
  • 🧹 Code Cleanup: Use the --clear flag to safely remove tags from source code once they are logged.
  • 🔒 Safe for Devs: Dashboard and routes are automatically disabled in production.

🚀 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 config file and prepares the internal storage.

🛠 Usage

  1. Adding Tags in Code You can now add priority levels to your tags:
// @ghost:high: Fix this critical security vulnerability
// @todo:medium: Implement the user profile update logic
// @fixme:low: Minor alignment issue on the footer
// @note: This is a general architectural note
  1. Generating the Diary Run the command to scan files and update the dashboard cache:
php artisan ghost:write
  1. Exporting Reports Generate reports in your preferred format:
php artisan ghost:write --format=markdown
php artisan ghost:write --format=json
php artisan ghost:write --format=csv
  1. Clearing and Archiving Log the notes to the Resolved History and remove them from your code:
php artisan ghost:write --clear

🖥 Web Dashboard

Visit the interactive dashboard at: http://your-app.test/ghost-notes

In the Dashboard you can:

  • 🔍 Search through notes by author, message, or file name.
  • 🖱️ One-click Open files directly in VS Code.
  • 📦 Download reports as CSV, JSON, or Markdown.
  • 🖨️ Print a clean PDF report of your technical debt.
  • 📜 View History of all resolved/cleared notes.

⚙️ Configuration

The configuration file (config/ghost-notes.php) allows you to customize:

return [
    'tags' => ['@ghost', '@todo', '@fixme', '@note'],
    'filename' => 'GHOST_LOG.md',
    '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 License File for more information.

Developed by Sabbir Alam

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-12-16