chesscom/honeybadger-php
PHP integration for Honeybadger error monitoring and reporting. Capture exceptions, log errors, and send notices to Honeybadger from your app or framework with configurable API key, environment, and context for faster debugging.
HoneybadgerMiddleware approach aligns with Laravel’s middleware stack, enabling granular control over error reporting (e.g., route-specific or global coverage). This is particularly useful for Laravel apps with complex routing or modular architectures..env variables) is a best practice, and the package’s design suggests support for toggling features per environment (e.g., disabling in local/dev).database, redis) would mitigate performance overhead during peak traffic. This is critical for high-traffic Laravel apps where synchronous HTTP calls could block responses.HoneyBadgerTestCase trait simplifies unit and integration testing, ensuring reliability during development and CI/CD pipelines.Illuminate\Validation\ValidationException with request data, user sessions, or custom metadata (e.g., HoneyBadger::context(['user_id' => 123])).HoneyBadger::notify($exception)->queue())?nova or scout packages.App\Exceptions\Handler) and middleware stack, requiring minimal changes to existing codebases.database, redis) to decouple error reporting from HTTP requests. This is ideal for high-traffic apps to avoid blocking responses.Artisan command failures, migration issues) if the package supports them. Integrate with Laravel Forge or Envoyer for deployment monitoring.HoneyBadgerTestCase trait simplifies testing error reporting in unit and feature tests, ensuring reliability during development.HONEYBADGER_ENABLED=true in staging/prod).abort(500), throw new \Exception()) and verify they appear in Honeybadger’s dashboard with expected context.config or environment variables to enable/disable Honeybadger per environment or feature.DatabaseException, PaymentFailedException).HoneyBadger::context() or custom logging)."laravel/framework": "^9.0").FailedJob events or custom listeners.How can I help you explore Laravel packages today?