Download the PHP package cleaniquecoders/laravel-config-webhook without Composer

On this page you can find all versions of the php package cleaniquecoders/laravel-config-webhook. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-config-webhook

Laravel Config Webhook

Latest Version on Packagist GitHub Tests Action Status Total Downloads

Define, sign, dispatch and log outgoing webhooks in any Laravel app. Subscribers register a URL, a secret, and the event types they care about; when one of those events fires, the package delivers an HMAC-signed JSON payload with automatic retries and exponential backoff, and records every attempt in a delivery log. Ships with an optional Livewire + Flux admin UI.

The package is completely app-agnostic β€” it knows nothing about your domain. You register your own event catalogue (via config or at runtime) and either dispatch payloads manually or map your domain events to webhook types.

Features

Requirements

Installation

The service provider and ConfigWebhook facade are auto-discovered β€” no manual registration needed.

Publish and run the migrations:

Publish the config:

Optionally publish the views (to customise the Flux UI):

The optional admin UI requires livewire/livewire and livewire/flux. The service, job, and signing all work without them.

Configuration

Register the event types your app can emit, either in config/config-webhook.php:

…or at runtime (e.g. in a service provider's boot()):

Usage

1. Dispatch a payload manually

Fan a payload out to every active webhook subscribed to the event type:

The receiver gets:

2. Map a domain event (auto-dispatch)

Wire a domain event to a webhook type once and the package dispatches automatically whenever the event fires:

3. Verifying signatures on the receiving side

Admin UI

Enable the bundled full-page route in config/config-webhook.php:

Or drop the Livewire component anywhere in your own layout:

Restrict access with a gate:

Pruning logs

How it works

Concern Class
Manager (facade root) ConfigWebhook β€” registerEvent(s), listen, send, dispatchFromEvent
Models Models\Webhook, Models\WebhookDeliveryLog (package Concerns\HasUuid)
Status Enums\DeliveryStatus β€” PENDING, SUCCESS, FAILED, RETRYING
Delivery Jobs\SendWebhookEvent (queued, retry + backoff)
Signing Support\WebhookSignature β€” generate / verify
Events Events\WebhookDelivered, Events\WebhookFailed
CLI Commands\PruneWebhookDeliveryLogsCommand
UI Livewire\Webhooks + resources/views/livewire/webhooks.blade.php (Flux, optional)

Testing

The suite includes a true end-to-end test (tests/EndToEndTest.php) that mirrors how a consuming app uses the package: a domain event is mapped with ConfigWebhook::listen(), a subscriber webhook is created, the event is fired, and the queued job runs on the sync queue to deliver a signed HTTP request β€” asserting both the outgoing request and the recorded delivery log.

Local development (try it in a real app)

The package ships an Orchestra Testbench Workbench setup (testbench.yaml + workbench/) β€” a real Laravel app, pre-seeded so it works end-to-end out of the box:

Then exercise the full pipeline:

workbench/app/Providers/WorkbenchServiceProvider.php shows exactly how a host app registers its event catalogue and maps a domain event to a webhook type; workbench/routes/web.php includes a /receiver endpoint that verifies the HMAC signature.

The demo delivers on a database queue, so a queue:work worker must be running. In your own app you can deliver synchronously by setting the queue connection to sync.

Documentation

Full documentation lives in docs/:

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

This package was extracted and generalised from the G8Stack webhook integrations feature.

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-config-webhook with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^12.0||^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package cleaniquecoders/laravel-config-webhook contains the following files

Loading the files please wait ...