PHPackages                             andresilva/filament-webhook-server - 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. [API Development](/categories/api)
4. /
5. andresilva/filament-webhook-server

ActiveLibrary[API Development](/categories/api)

andresilva/filament-webhook-server
==================================

Send webhooks from your filament apps

v2.1.30(1y ago)0937MITPHPPHP ^8.0 || ^8.1 || ^8.2

Since Oct 10Pushed 1y agoCompare

[ Source](https://github.com/andre-silvakmm/filament-webhook-server)[ Packagist](https://packagist.org/packages/andresilva/filament-webhook-server)[ Docs](https://github.com/marjose123/filament-webhook-server)[ GitHub Sponsors](https://github.com/marjose123)[ RSS](/packages/andresilva-filament-webhook-server/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (10)Dependencies (21)Versions (36)Used By (0)

Send webhooks from your filament apps
=====================================

[](#send-webhooks-from-your-filament-apps)

[![Latest Version on Packagist](https://camo.githubusercontent.com/42c63be4d278244029d534122d815ef7d8338c66e4d56c464e9f8c26b133ae42/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d61726a6f73653132332f66696c616d656e742d776562686f6f6b2d7365727665722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/marjose123/filament-webhook-server)[![Total Downloads](https://camo.githubusercontent.com/3f93766ca4ea17f80e4f483d4271dfe7287de205b07ff7c2ba70c2bea7275dc8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d61726a6f73653132332f66696c616d656e742d776562686f6f6b2d7365727665722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/marjose123/filament-webhook-server)

[![image1](https://github.com/MarJose123/filament-webhook-server/raw/2.x/.art/filament-webhook-server1.png)](https://github.com/MarJose123/filament-webhook-server/blob/2.x/.art/filament-webhook-server1.png)

This package provides a Filament page that you can send webhook server . You'll find installation instructions and full documentation on [spatie/laravel-webhook-server](https://github.com/spatie/laravel-webhook-server).

---

🚨 \_For latest version that support FilamentPhp v2.x use this branch [1.x](https://github.com/MarJose123/filament-webhook-server/tree/1.x)\_or released version "^1.0"

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

[](#installation)

You can install the package via composer:

```
composer require andresilva/filament-webhook-server
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="filament-webhook-server-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="filament-webhook-server-config"
```

This is the contents of the published config file:

```
return [
    /*
     *  Models that you want to be part of the webhooks options
     */
    'models' => [
        \App\Models\User::class,
    ],
    /*
     */
    'polling' => '10s'
];
```

Add the plugin to your panel and you're ready to go

```
use Marjose123\FilamentWebhookServer\WebhookPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        // ...
        ->plugins([
               WebhookPlugin::make() //  1. Add the models that you want to be part of the webhook
> 2. This package will automatically register the `Webhook-Server`. You'll be able to see it when you visit your Filament admin panel.

Customising the polling interval
--------------------------------

[](#customising-the-polling-interval)

You can customise the polling interval for the `Webhook-Server` by publishing the configuration file and updating the `polling` value.

Webhook payload Structure
-------------------------

[](#webhook-payload-structure)

```
[
  {
    "event": "created",  //
