php-prosvirin-dev/laravel-todo-inspector
Composer 安装命令:
composer require php-prosvirin-dev/laravel-todo-inspector
包简介
Scan and manage TODO, FIXME, HACK comments in Laravel projects
README 文档
README
A powerful Laravel package to scan, manage, and track TODO, FIXME, HACK, REVIEW, and NOTE comments across your entire project. Transform scattered code comments into a manageable technical debt backlog with a beautiful web interface.
Features
- 🔍 Smart Scanning - Detects TODO, FIXME, HACK, REVIEW, NOTE comments in single-line and multi-line formats
- 📊 Web Interface - Clean, responsive dashboard with filtering, search, and bulk actions
- 🎨 Dark/Light Theme - Automatic theme switching with user preference persistence
- 🌍 Multi-language - Support for 9 languages (English, Russian, Ukrainian, Polish, German, French, Spanish, Chinese, Japanese)
- 🔐 Authentication - Simple HTTP Basic Auth with configurable credentials
- ⚡ Bulk Operations - Update multiple task statuses at once
- 🗂️ File Links - Direct links to files in PhpStorm (configurable for other IDEs)
- 📈 Statistics - Visual statistics by type, priority, and status
- 🛠️ Artisan Command -
php artisan todo:scanfor manual or scheduled scanning
Requirements
- PHP 8.1 or higher
- Laravel 10.x, 11.x, 12.x, or 13.x
- MySQL, PostgreSQL, or SQLite
Installation
1. Install via Composer
composer require php-prosvirin-dev/laravel-todo-inspector
2. Publish Package Assets
Publish everything at once:
php artisan vendor:publish --provider="Prosvirin\LaravelTodoInspector\TodoInspectorServiceProvider"
Or publish individually:
php artisan vendor:publish --tag=todo-inspector-config # Configuration php artisan vendor:publish --tag=todo-inspector-migrations # Database migrations php artisan vendor:publish --tag=todo-inspector-views # Blade templates php artisan vendor:publish --tag=todo-inspector-lang # Language files php artisan vendor:publish --tag=todo-inspector-assets # CSS/JS assets
3. Run Migrations
php artisan migrate
4. Configure Authentication
Add credentials to your .env file to secure the web interface:
TODO_INSPECTOR_LOGIN=admin TODO_INSPECTOR_PASSWORD=your-secure-password
Configuration
The configuration file is located at config/todo-inspector.php after publishing.
Basic Configuration
return [ 'table_name' => env('TODO_INSPECTOR_TABLE', 'todo_inspector_tasks'), 'theme' => env('TODO_INSPECTOR_THEME', 'dark'), 'auth' => [ 'login' => env('TODO_INSPECTOR_LOGIN', 'admin'), 'password' => env('TODO_INSPECTOR_PASSWORD', 'password'), ], 'locales' => [ 'en' => ['flag' => '🇬🇧', 'name' => 'English'], 'ru' => ['flag' => '🇷🇺', 'name' => 'Русский'], 'uk' => ['flag' => '🇺🇦', 'name' => 'Українська'], 'pl' => ['flag' => '🇵🇱', 'name' => 'Polski'], 'de' => ['flag' => '🇩🇪', 'name' => 'Deutsch'], 'fr' => ['flag' => '🇫🇷', 'name' => 'Français'], 'es' => ['flag' => '🇪🇸', 'name' => 'Español'], 'zh' => ['flag' => '🇨🇳', 'name' => '中文'], 'ja' => ['flag' => '🇯🇵', 'name' => '日本語'], ], 'extensions' => ['php', 'js', 'vue', 'blade.php', 'css', 'scss'], 'exclude_dirs' => ['vendor', 'node_modules', 'storage', 'bootstrap/cache', '.git', 'tests'], 'exclude_files' => ['test-*.php', '*_test.php', '*.test.php'], 'github_repo' => env('TODO_INSPECTOR_GITHUB_REPO', null), ];
Usage
Run the scan command to find all TODO comments:
php artisan todo:scan
Options:
--clear- Clear existing tasks before scanning--type=TODO- Scan only specific type (TODO, FIXME, HACK, REVIEW, NOTE)--path=app/Http- Scan only specific directory
Example:
php artisan todo:scan --clear --type=FIXME --path=app/Http
Schedule Automatic Scans
Add to app/Console/Kernel.php:
protected function schedule(Schedule $schedule): void { $schedule->command('todo:scan')->dailyAt('03:00'); // or hourly: $schedule->command('todo:scan')->hourly(); }
Access Web Interface
http://your-project.test/todo-inspector
Login with credentials configured in .env.
Features in Web Interface
Dashboard
- Statistics Cards - Total tasks and breakdown by type
- Priority Statistics - Visual breakdown by priority level
- Click Filters - Click on any statistic card to filter tasks
Task Management
- Search - Search across content, file paths, and authors
- Filters - Filter by type, priority, and status
- Bulk Actions - Update multiple tasks at once
- Status Updates - Change task status directly from the table
- File Links - Click the code icon to open the file in PhpStorm
Theme & Language
- Dark/Light Mode - Toggle with persistent preference
- Multi-language - Select from 9 languages, saved to localStorage
Comment Format Examples
The package detects comments in the following formats:
Single-line Comments
// TODO: Fix this bug // FIXME: @username Memory leak here // HACK: [HIGH] Temporary workaround // REVIEW: @lead Please check this logic // NOTE: Important performance consideration
Multi-line Comments
/** * TODO: Refactor this method * FIXME: @developer Edge case not handled * REVIEW: Architecture decision needed */
Priority Tags
Use brackets to specify priority:
[LOW]- Low priority[MEDIUM]- Medium priority (default)[HIGH]- High priority[CRITICAL]- Critical priority
Author Tags
Use @username to assign tasks to specific developers.
Customization
Override Views
php artisan vendor:publish --tag=todo-inspector-views
Views will be copied to resources/views/vendor/todo-inspector/. Modify them as needed.
Override Translations
php artisan vendor:publish --tag=todo-inspector-lang
Translations will be copied to resources/lang/vendor/todo-inspector/. Add or modify translations.
Custom CSS/JS
php artisan vendor:publish --tag=todo-inspector-assets
Assets will be copied to public/vendor/todo-inspector/. Update CSS or JS files directly.
Troubleshooting
Tasks Not Found
- Check file extensions in config
- Verify exclude directories don't include your code
- Ensure comments match the expected patterns
Authentication Issues
- Verify credentials in
.envfile - Clear config cache:
php artisan config:clear
Translation Not Working
- Publish language files:
php artisan vendor:publish --tag=todo-inspector-lang - Clear view cache:
php artisan view:clear
Contributing
Contributions are welcome! Please submit a Pull Request or create an Issue.
License
The MIT License (MIT). Please see License File for more information.
Credits
- Created by Yauheni Prasviryn
- Built with Laravel and Tailwind CSS
php-prosvirin-dev/laravel-todo-inspector 适用场景与选型建议
php-prosvirin-dev/laravel-todo-inspector 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 04 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「todo」 「inspector」 「scanner」 「code-quality」 「technical-debt」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 php-prosvirin-dev/laravel-todo-inspector 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 php-prosvirin-dev/laravel-todo-inspector 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 php-prosvirin-dev/laravel-todo-inspector 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Simplified database records management
Instant support for PHP Code Sniffer, PHP CS Fixer, and PHP MD in the Artisan CLI
A simple cli command to inspect Laravel Redis queues.
Make temporary Laravel workarounds expire and fail CI when ignored.
Direct link to the Inspector dashboard in your Laravel Nova installation.
A plugin for Roundcube to include CalDAVZap in to the main GUI
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 41
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-01
