PHPackages                             weblabnl/laravel-webhook-call - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. weblabnl/laravel-webhook-call

ActiveLibrary[HTTP &amp; Networking](/categories/http)

weblabnl/laravel-webhook-call
=============================

:package\_description

0.3.1(1y ago)03.7k1[3 PRs](https://github.com/Weblab-nl/laravel-webhook-call/pulls)MITPHPPHP ^8.0CI passing

Since Dec 23Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/Weblab-nl/laravel-webhook-call)[ Packagist](https://packagist.org/packages/weblabnl/laravel-webhook-call)[ Docs](https://github.com/Weblab-nl/laravel-webhook-call)[ RSS](/packages/weblabnl-laravel-webhook-call/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (13)Versions (17)Used By (0)

Laravel Webhook Call
====================

[](#laravel-webhook-call)

A webhook is a way for an app to provide other applications with real-time information. When an event occurs in the app, a notification is sent in the form of an HTTP request to registered webhooks.

This package allows you to easily store webhook endpoints and events in a database, while the results of the webhook calls are logged in the database. It is built on top of the excellent [spatie/laravel-webhook-server](https://github.com/spatie/laravel-webhook-server) package, that provides among things functionality to sign calls and to retry failed calls. This package makes it easier and adds functionality for managing and tracking webhooks and their associated data.

With this package, you can easily manage and track your webhooks, making it possible to build interfaces for managing webhooks on top of this.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require weblabnl/laravel-webhook-call
```

You can publish the config file with:

```
php artisan vendor:publish --provider="Weblab\WebhookCall\WebhookCallServiceProvider"
```

This is the contents of the file that will be published at `config/webhook-call.php`. You can change the default values to your needs and bring your own top model objects.

```
return [
    // the model to use for the webhook calls
    'models' => [
        // The model that should be used to store the webhook endpoint data.
        'webhook' => \Weblab\WebhookCall\Models\Webhook::class,

        // The model that should be used to store the webhook event data.
        'webhook_event' => \Weblab\WebhookCall\Models\WebhookEvent::class,

        // The model that should be used to store the webhook log data.
        'webhook_log' => \Weblab\WebhookCall\Models\WebhookLog::class,
    ],
];
```

After installing the package, you can run the migrations using:

```
php artisan migrate
```

Usage
-----

[](#usage)

Calling a webhook is as simple as:

```
// fetch a webhook from the database
$webhook = Webhook::find(1);

// call the webhook
WebhookCall::create()
    ->wehbook($webhook)
    ->dispatch();
```

Webhook logging
---------------

[](#webhook-logging)

In addition to storing webhook endpoints and events in the database, this package also provides detailed logs of webhook call results. Both successful and failed results are stored in the database and include information such as the endpoint response code, response, and the original payload. This makes it easy to track and troubleshoot any issues with your webhooks.

Providing the webhook event for the log
---------------------------------------

[](#providing-the-webhook-event-for-the-log)

When you call a webhook, you can provide an event that will be stored in the log.

```
// fetch a webhook from the database
$webhook = Webhook::find(1);

$webhookEvent = $webhook->webhookEvents()
    ->where('name', 'order.created')
    ->first();

// call the webhook
WebhookCall::create()
    ->wehbook($webhook)
    ->webhookEvent($webhookEvent)
    ->dispatch();
```

After this, the webhook event is available in any log entries related to this webhook call as well

Entities related to the webhook data
------------------------------------

[](#entities-related-to-the-webhook-data)

When you call a webhook, you can provide an entity that will be stored in the log.

```
// fetch a webhook from the database
$webhook = Webhook::find(1);

// fetch an entity from the database
$entity = Order::find(1);

// call the webhook
WebhookCall::create()
    ->wehbook($webhook)
    ->entity($entity)
    ->dispatch();
```

After this, the entity is available in any log entries related to this webhook call as well

More options
------------

[](#more-options)

More available options for testing and the WebhookCall class can be found on the [spatie/laravel-webhook-server](https://github.com/spatie/laravel-webhook-server) github page

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

### Security

[](#security)

If you discover any security-related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance68

Regular maintenance activity

Popularity18

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~129 days

Recently: every ~161 days

Total

6

Last Release

588d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/adf2b14cceb05ae6d6e5044234032afabb190fd10dd2f01714381870d4f56338?d=identicon)[ThomasMarinissen](/maintainers/ThomasMarinissen)

---

Top Contributors

[![ThomasMarinissen](https://avatars.githubusercontent.com/u/11422575?v=4)](https://github.com/ThomasMarinissen "ThomasMarinissen (9 commits)")[![JordiBontje](https://avatars.githubusercontent.com/u/24269919?v=4)](https://github.com/JordiBontje "JordiBontje (6 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")[![Hasan-Ekinci](https://avatars.githubusercontent.com/u/115284266?v=4)](https://github.com/Hasan-Ekinci "Hasan-Ekinci (3 commits)")[![mckooiker](https://avatars.githubusercontent.com/u/19285394?v=4)](https://github.com/mckooiker "mckooiker (1 commits)")

---

Tags

laravelWeblab.nllaravel-webhook-call

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/weblabnl-laravel-webhook-call/health.svg)

```
[![Health](https://phpackages.com/badges/weblabnl-laravel-webhook-call/health.svg)](https://phpackages.com/packages/weblabnl-laravel-webhook-call)
```

###  Alternatives

[omniphx/forrest

A Laravel library for Salesforce

2724.4M8](/packages/omniphx-forrest)[sunchayn/nimbus

A Laravel package providing an in-browser API client with automatic schema generation, live validation, and built-in authentication with a touch of Laravel-tailored magic for effortless API testing.

29428.0k](/packages/sunchayn-nimbus)[muhammadhuzaifa/telescope-guzzle-watcher

Telescope Guzzle Watcher provide a custom watcher for intercepting http requests made via guzzlehttp/guzzle php library. The package uses the on\_stats request option for extracting the request/response data. The watcher intercept and log the request into the Laravel Telescope HTTP Client Watcher.

98239.8k1](/packages/muhammadhuzaifa-telescope-guzzle-watcher)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[pdphilip/cf-request

Cloudflare Laravel Request

2725.6k1](/packages/pdphilip-cf-request)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
