nicolas-joubert/grabit-bundle
A Symfony bundle that integrates Grabit into PHP applications, providing service configuration and Composer-ready setup for adding Grabit-based functionality. Useful when you want a simple, bundle-managed way to wire Grabit services into Symfony projects.
composer require nicolas-joubert/grabit-bundle and, if you want the new lifecycle events, pin ^1.5.php artisan vendor:publish --tag=grabit-config) and skim it first — source definitions, HTTP/transport options, and error handling defaults usually live there.tinker before wiring anything into a job or command. This is the fastest way to confirm credentials, transport config, and output shape.SourceErrorEvent so failures are visible from day one.SourceDisabledEvent and SourceErrorEvent in your EventServiceProvider (or via Event::listen in a service provider). Typical handlers: log with source context, increment a metric, notify Slack, or flip an internal sources.status column so your admin UI reflects reality.Event::fake([SourceErrorEvent::class])) and assert dispatch, rather than hitting a live endpoint.SourceDisabledEvent is a state-change signal — don't build dashboards that assume one event per run. Persist the state and treat the event as an edge trigger.SourceErrorEvent fires while the source is already unhealthy, a listener that throws will obscure the original error. Keep handlers defensive and side-effect-light; push slow work (HTTP calls, mail) onto a queue.SourceDisabledEvent is administrative/expected; SourceErrorEvent is a fault. Route them to different channels and different alert severities, or you'll train your team to ignore both.1.4.x, the events are additive, so no breaking changes expected; just bump the constraint and add listeners. Verify your event names against the class constants rather than string literals to survive future renames.How can I help you explore Laravel packages today?