apuc / yii2-channels-webhook
Extention, that allows you to throw a webhook after saving model
Installs: 61
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: ~2.0.0
This package is not auto-updated.
Last update: 2024-10-04 09:21:17 UTC
README
Extention, that allows you to throw a webhook after saving model
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist apuc/yii2-channels-webhook "*"
or add
"apuc/yii2-channels-webhook": "*"
to the require section of your composer.json
file.
Usage example
"websocket" => [
"class" => WebHookBehavior::className(),
"url" => "https://example.com"
"onUpdate" => false
]
You can also add module for testing
'module' => [
'test' => [
'class' => 'apuc\channels_webhook\modules\test\Test',
],
]