PHPackages                             syehan/webhook-plugin - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. syehan/webhook-plugin

ActiveOctober-plugin[Utility &amp; Helpers](/categories/utility)

syehan/webhook-plugin
=====================

Webhooks allow external services to be notified when certain events happen. When the specified events happen, we’ll send a POST request to each of the URLs you provide.

v1.0.1(2y ago)211MITPHPPHP ^8.0

Since Sep 18Pushed 2y ago1 watchersCompare

[ Source](https://github.com/syehan/webhook-plugin)[ Packagist](https://packagist.org/packages/syehan/webhook-plugin)[ Docs](https://github.com/syehan/webhook-plugin)[ RSS](/packages/syehan-webhook-plugin/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

OctoberCMS Webhook
------------------

[](#octobercms-webhook)

Use `syehan/webhook-plugin`. A webhook is a way for an app to provide information to another app about a particular event. The way the two apps communicate is with a simple HTTP request.

### Installation

[](#installation)

**1** - You can install the package via composer:

```
$ composer require syehan/webhook-plugin
```

**2** - Now publish the migration for webhook tables:

```
php artisan october:migrate

```

*Note:* It will generate migration table `syehan_webhook_webhooks`.

### Required Dependency

[](#required-dependency)

This plugin required dependency by Spatie Webhook Server () If there's some trouble, here's another way to do :

You can install it by :

```
composer require spatie/laravel-webhook-server "^3.4"

```

---

Or, Install composer merge plugin like this :

```
composer require wikimedia/composer-merge-plugin "^2.0"

```

Next, adding allow plugins configuration in your composer.json :

```
"config": {
    "preferred-install": "dist",
    "allow-plugins": {
        "composer/installers": true,
        "wikimedia/composer-merge-plugin": true
    }
},

```

Then, adding extra configuration in your composer.json :

```
"extra": {
    "merge-plugin": {
        "include": [
            "plugins/*/*/composer.json"
        ],
        "recurse": true,
        "replace": false,
        "merge-dev": false
    }
},

```

Last but not least,

```
composer update

```

### Config Webhook

[](#config-webhook)

If your have any setup for webhook server please make sure to copy our config below and paste in `config/webhook-server.php`.

```
