almosabbirrakib/laravel-debugger
Composer 安装命令:
composer require almosabbirrakib/laravel-debugger
包简介
A modern, sleek debugging toolbar for Laravel with a fresh UI/UX design built with Vue 3 and TailwindCSS
关键字:
README 文档
README
A modern, sleek debugging toolbar for Laravel with a fresh UI/UX design built with Vue 3 and TailwindCSS.
✨ Features
- 🎨 Modern UI/UX: Beautiful dark mode interface with glassmorphic design
- ⚡ Performance Metrics: Execution time, memory usage, and server load tracking
- 🗄️ Database Queries: View all SQL queries with bindings, timing, and syntax highlighting
- 🛣️ Route Information: Route name, controller, action, middleware, and parameters
- 👁️ View Debugging: Track rendered views and their data
- 📝 Application Logs: Color-coded log entries with context
- 💾 Request Data: Complete request information including headers, parameters, and session
- 📱 Responsive Design: Works on desktop and mobile devices
- 🎯 Collapsible Interface: Clean, non-intrusive toolbar that slides in/out smoothly
- 🔒 Environment Aware: Only loads in development/local environments
📦 Installation
Install the package via Composer:
composer require almosabbirrakib/laravel-debugger --dev
The package will automatically register its service provider using Laravel's package discovery.
🚀 Setup
1. Publish Configuration (Optional)
php artisan vendor:publish --tag=debugger-config
This will create a config/debugger.php file where you can customize the debugger behavior.
2. Publish Assets
php artisan vendor:publish --tag=debugger-assets
This will publish the compiled CSS and JavaScript files to public/vendor/debugger.
3. Enable the Debugger
Add to your .env file:
DEBUGGER_ENABLED=true
Or keep it enabled only when APP_DEBUG is true (default behavior).
⚙️ Configuration
The configuration file allows you to customize various aspects of the debugger:
return [ // Enable/disable the debugger 'enabled' => env('DEBUGGER_ENABLED', env('APP_DEBUG', false)), // Allowed environments 'allowed_environments' => ['local', 'development', 'dev', 'testing'], // Toggle individual collectors 'collectors' => [ 'request' => true, 'route' => true, 'queries' => true, 'views' => true, 'logs' => true, 'performance' => true, ], // Query settings 'queries' => [ 'max_queries' => 100, ], // Log settings 'logs' => [ 'max_logs' => 50, ], // UI customization 'ui' => [ 'position' => 'bottom', // bottom or top 'theme' => 'dark', ], // Exclude routes 'except' => [ 'debugger/*', '_debugbar/*', ], ];
📋 Usage
Once installed and configured, the debugger will automatically appear at the bottom of your pages when accessing your Laravel application in a local or development environment.
Toggle the Debugger
Click the blue toggle button to show/hide the debug bar.
Navigate Panels
Use the tab navigation to switch between different debugging panels:
- Performance: View execution time, memory usage, and server load
- Queries: Inspect all database queries with timing and bindings
- Request: Examine request data, headers, and session
- Route: View route information and middleware
- Views: See rendered views and their data
- Logs: Review application log entries
🎨 UI Preview
The debugger features a modern dark theme with:
- Glassmorphic backdrop blur effects
- Smooth slide animations
- Color-coded badges for quick information scanning
- Syntax-highlighted SQL queries
- Responsive tabbed interface
- Custom scrollbars
🔧 Advanced Usage
Excluding Routes
To exclude specific routes from debugging, add them to the except array in the config:
'except' => [ 'api/*', 'webhooks/*', '_debugbar/*', ],
Customizing Data Limits
Adjust the maximum number of queries and logs captured:
'queries' => [ 'max_queries' => 200, // Default: 100 ], 'logs' => [ 'max_logs' => 100, // Default: 50 ],
🛠️ Development
To work on the package:
- Clone the repository
- Install dependencies:
composer install npm install
- Build assets:
npm run build
- For development with hot reload:
npm run dev
📝 Requirements
- PHP 8.1 or higher
- Laravel 10.x or 11.x
- Node.js 18+ (for building assets)
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
📄 License
This package is open-sourced software licensed under the MIT license.
🙏 Acknowledgments
Inspired by barryvdh/laravel-debugbar but built from scratch with a modern UI/UX approach.
💡 Support
If you encounter any issues or have questions, please open an issue on GitHub.
Made with ❤️ by Almosabbir Rakib
almosabbirrakib/laravel-debugger 适用场景与选型建议
almosabbirrakib/laravel-debugger 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 11 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「debug」 「toolbar」 「laravel」 「debugger」 「vue」 「laravel-package」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 almosabbirrakib/laravel-debugger 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 almosabbirrakib/laravel-debugger 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 almosabbirrakib/laravel-debugger 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Expand, collapse, change the status of, or delete multiple blocks in a Matrix field simultaneously.
Debug your SimpleBus EventBus and CommandBus
nice output for debug functions for PHP 5.3
Analysis module for finding problematical shop data.
Twig extensions for Tracy Debugger
ZF2 Zend developer toolbar addon : Playground Template Hint
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 29
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-25