spatie/laravel-github-webhooks
Handle GitHub webhooks in Laravel: verify signatures, log valid calls, and dispatch jobs/events per webhook type. Includes a GitHubWebhookCall model to access payloads and queueable handlers for event-driven integrations.
Adopt when:
Look elsewhere if:
probot or github-webhook-handler.*) but may require custom logic for nuanced rules.queue:work)."This package lets us leverage GitHub’s real-time events (e.g., issues, PRs, deployments) to automate workflows without building custom infrastructure.**
Ask: "Which GitHub events are highest priority for our roadmap? We can scope this as a 2–4 week project."
"This package abstracts the boilerplate of GitHub webhook handling in Laravel, so we can focus on business logic.** Key benefits:
github_webhook_calls for debugging/retries.issues.opened) to custom jobs or Laravel events.ProcessGitHubWebhookJob.How to Start:
composer require spatie/laravel-github-webhooks.php artisan vendor:publish --provider="Spatie\GitHubWebhooks\GitHubWebhooksServiceProvider".Route::githubWebhooks('webhook-endpoint') in api.php.config/github-webhooks.php (e.g., issues.opened → HandleIssueJob).Trade-offs:
Proposal: "Let’s prototype this for [high-priority event X] in 1 week. If it works, we can expand to [other events Y/Z]."
How can I help you explore Laravel packages today?