Download the PHP package responsive-sk/php-debugbar-middleware without Composer
On this page you can find all versions of the php package responsive-sk/php-debugbar-middleware. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download responsive-sk/php-debugbar-middleware
More information about responsive-sk/php-debugbar-middleware
Files in responsive-sk/php-debugbar-middleware
Package php-debugbar-middleware
Short Description Modern PSR-15 middleware for PHP DebugBar with automatic asset serving. Works with Mezzio, Slim 4, Symfony, and any PSR-15 framework.
License MIT
Homepage https://github.com/responsive-sk/php-debugbar-middleware
Informations about the package php-debugbar-middleware
PHP DebugBar Middleware
Modern PSR-15 middleware for PHP DebugBar with automatic asset serving and zero configuration. Works seamlessly with Mezzio, Slim 4, Symfony, and any PSR-15 compatible framework.
โจ Features
- ๐ Zero Configuration - Works out of the box
- ๐ฏ Automatic Asset Serving - No manual asset copying required
- ๐ Security First - Path traversal protection and development-only activation
- โก High Performance - Minimal overhead, production-safe
- ๐จ Full Styling - Complete CSS/JS with Font Awesome icons
- ๐ง Framework Agnostic - Works with any PSR-15 framework
- ๐ฑ Modern PHP - Requires PHP 8.2+, strict types, comprehensive typing
๐ฆ Installation
๐ Quick Start
Mezzio / Laminas
Slim 4
Symfony (with PSR-15 Bridge)
Manual Setup (Any PSR-15 Framework)
๐๏ธ Configuration
Environment-Based Activation
DebugBar automatically activates in development and deactivates in production:
Custom Configuration
๐ง Framework-Specific Examples
Mezzio Complete Setup
Slim 4 with Container
๐ What You Get
- Request Timeline - See exactly where time is spent
- Memory Usage - Track memory consumption
- Exception Tracking - Catch and display errors
- Request Data - Inspect GET/POST/COOKIE data
- Custom Messages - Add your own debug messages
- Database Queries - Monitor SQL performance (with additional collectors)
๐ก๏ธ Security
- Development Only - Automatically disabled in production
- Path Traversal Protection - Secure asset serving
- No External Dependencies - All assets served locally
- Environment Detection - Respects APP_ENV and DEBUG settings
๐จ Styling
DebugBar appears with full styling including:
- Font Awesome icons
- Responsive design
- Dark/light theme support
- Professional appearance
- Zero configuration required
๐งช Testing
๐ Performance
- Zero Production Impact - Completely disabled in production
- Minimal Development Overhead - Optimized for development workflow
- Efficient Asset Serving - Direct file serving without processing
- Memory Efficient - Lazy loading and minimal memory footprint
๐จ Custom Branding
Want to use your own logo instead of the default? Check out our comprehensive Branding Guide with examples for:
- Custom Logo Integration - Replace with your company logo
- Theme Customization - Match your brand colors
- Framework-Specific Examples - Ready-to-use configurations
- Best Practices - Design and performance guidelines
๐ Roadmap & Future Enhancements
See our Roadmap for planned features and enhancement ideas:
- Database query collectors
- Advanced performance monitoring
- Mobile-responsive design
- Plugin system architecture
- Enterprise features
๐ง Troubleshooting
DebugBar appears but CSS/JS assets return 404
Problem: DebugBar HTML is injected but assets (CSS/JS) are not loading.
Solution: Make sure you've registered the assets route:
DebugBar doesn't appear at all
Causes & Solutions:
-
Environment Detection: DebugBar only appears in development
-
Middleware Not Registered: Ensure middleware is in pipeline
- ConfigProvider Not Loaded: Check config aggregation
Class not found errors
Solution: Regenerate autoloader
๐ค Contributing
Contributions are welcome! Please see CONTRIBUTING.md for details.
๐ License
This package is open-sourced software licensed under the MIT license.
๐ Credits
- Built by Responsive.sk
- Based on PHP DebugBar by Maxime Bouroumeau-Fuseau
- Inspired by the Laravel DebugBar package
๐ Related Packages
- php-debugbar/php-debugbar - The core DebugBar library
- responsive-sk/slim4-paths - Path management for PHP applications
All versions of php-debugbar-middleware with dependencies
php-debugbar/php-debugbar Version ^1.0 || ^2.0
psr/http-message Version ^1.0 || ^2.0
psr/http-server-handler Version ^1.0
psr/http-server-middleware Version ^1.0
psr/container Version ^1.0 || ^2.0