Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Github Webhooks Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. Buy: Buy – This package eliminates the need to build custom webhook handling logic from scratch, saving development time and reducing technical debt. It’s a battle-tested, production-ready solution for GitHub webhook integration in Laravel.
  • Feature Expansion: Enables real-time or near-real-time reactions to GitHub events (e.g., issue creation, PR merges, deployments) without blocking the webhook response. Critical for:
    • Developer Tools: Automating workflows (e.g., Slack notifications, CI/CD triggers, or internal dashboards).
    • Customer-Facing Apps: Syncing GitHub activity to user interfaces (e.g., issue trackers, project management tools).
    • Security/Compliance: Auditing or logging GitHub events for governance (e.g., tracking sensitive repo changes).
  • Roadmap Prioritization: Justifies investing in event-driven architecture or asynchronous processing if your product relies on GitHub as a data source or trigger.
  • Use Cases:
    • Internal Tools: Automate developer onboarding, code review workflows, or deployment monitoring.
    • SaaS Products: Sync GitHub data to customer portals (e.g., "Your PR was merged!" alerts).
    • DevOps: Trigger Kubernetes deployments, database migrations, or notifications based on GitHub events.

When to Consider This Package

Adopt This Package If:

  • Your Laravel app needs to react to GitHub events (e.g., issues, PRs, pushes, deployments) reliably and at scale.
  • You want built-in security (automatic signature verification, logging, and error handling) without writing boilerplate.
  • Your team lacks expertise in webhook security (e.g., CSRF protection, payload validation) or asynchronous processing.
  • You prioritize maintainability over custom solutions (e.g., avoiding spaghetti middleware or one-off scripts).
  • You need auditability (all webhook calls are logged to a database by default).

Look Elsewhere If:

  • You’re not using Laravel (this package is Laravel-specific).
  • Your webhook payloads are extremely large (the package stores payloads in a database; consider streaming or S3 for massive payloads).
  • You need real-time processing (e.g., WebSocket updates) and can’t tolerate queue delays (though the package supports queueing jobs).
  • You’re using GitHub Actions or other CI tools that already handle webhook-like triggers (e.g., repository_dispatch).
  • Your use case requires custom webhook signing logic beyond GitHub’s standard HMAC (though the package supports disabling verification locally).

How to Pitch It (Stakeholders)

For Executives/Non-Technical Stakeholders:

*"This package lets us automate GitHub-driven workflows without building and maintaining custom webhook infrastructure. For example:

  • Developers: Get instant Slack alerts when critical issues are opened or PRs are merged.
  • Customers: See real-time updates in our dashboard when their GitHub repos change (e.g., ‘Your feature branch was deployed!’).
  • Operations: Automate deployments or rollbacks based on GitHub events, reducing manual errors.

It’s secure, scalable, and maintained by a trusted open-source team (Spatie), so we avoid reinventing the wheel. The cost? Minimal—just a few hours to set up vs. weeks of custom development. The ROI? Faster releases, happier devs, and fewer fires to put out."*

For Engineering/Technical Stakeholders:

*"This package solves three critical problems for GitHub webhooks in Laravel:

  1. Security: Automatically verifies GitHub signatures and logs all calls (no more missed or spoofed events).
  2. Reliability: Uses Laravel’s queue system to process webhooks asynchronously, ensuring fast responses (200 OK) even for heavy payloads.
  3. Extensibility: Lets us hook into any GitHub event (issues, PRs, pushes, etc.) with minimal code via jobs or events.

Key benefits:

  • No more race conditions: Webhook responses are instant (200 OK), while processing happens in the background.
  • Audit trail: All payloads are stored in github_webhook_calls for debugging or compliance.
  • Future-proof: Supports custom logic (e.g., pre/post-processing jobs) and pruning old logs.

Trade-offs:

  • Adds a database table (github_webhook_calls), but pruning is automated.
  • Requires Laravel (not a dealbreaker if we’re already using it).

Recommendation: Use this for any GitHub-driven automation—it’s faster, safer, and more maintainable than rolling our own solution."*


Call to Action:

  • Engineering: "Let’s prototype this for [high-priority use case] in 2 days."
  • Product: "This unlocks [feature X]—should we prioritize it?"
  • Security: "We’ll need to review the GitHub secret management (env vars + config)."
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
codraw/entity-migrator
codraw/doctrine-extra
codraw/aws-tool-kit
codraw/validator
codraw/workflow
codraw/open-api
codraw/cron-job
codraw/process
codraw/log
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony