kurozumi/github-webhook-bundle
A Symfony bundle that simplifies GitHub webhook integration: validates incoming payload signatures, dispatches events to your handlers, and lets your app react securely to GitHub activity without boilerplate.
composer require kurozumi/github-webhook-bundlephp artisan vendor:publish --provider="Kurozumi\GitHubWebhookBundle\GitHubWebhookServiceProvider" --tag="config"GITHUB_WEBHOOK_SECRET=your_secret to your .env file (use the same secret you configure in GitHub)/github/webhook by default. Point your GitHub repository/organisation webhook to https://yourdomain.com/github/webhook (or your custom route) and provide the secret.push event by creating a listener for Kurozumi\GitHubWebhookBundle\Events\GitHubWebhookReceived and checking $event->payload['ref'] or the event type.X-Hub-Signature-256 header automatically. Use the provided GitHubWebhook facade to parse and validate payloads if you need custom handling.PushEvent, PullRequestEvent) in addition to the generic GitHubWebhookReceived event. Register listeners in EventServiceProvider for the events you care about.$event->payload['action'] or the X-GitHub-Event header stored in $event->eventType.Http::fake() or the package’s testing helpers to simulate a valid webhook request without hitting GitHub.config/github-webhook.php after publishing..env; a mismatch causes a 403 response. Double‑check for trailing spaces or newlines.GitHubWebhookReceived event and inspect $event->payload.php artisan route:list to confirm the webhook route is registered and not conflicting with existing routes.config file for available options.How can I help you explore Laravel packages today?