apuc / yii2-channels-webhook

扩展,允许在保存模型后抛出webhook

安装: 61

依赖者: 0

建议者: 0

安全: 0

星标: 0

关注者: 3

分支: 0

公开问题: 0

类型:yii2-extension

dev-master / 1.0.6.x-dev 2019-10-24 10:21 UTC

This package is not auto-updated.

Last update: 2024-09-20 09:06:23 UTC


README

扩展,允许在保存模型后抛出webhook

安装

安装此扩展的首选方式是通过 composer

运行以下命令之一:

php composer.phar require --prefer-dist apuc/yii2-channels-webhook "*"

或者在您的 composer.json 文件的 require 部分添加

"apuc/yii2-channels-webhook": "*"

to the require section of your composer.json file.

使用示例

"websocket" => [
    "class" => WebHookBehavior::className(),
    "url" => "https://example.com"
    "onUpdate" => false
]

您还可以添加模块进行测试

'module' => [
    'test' => [
        'class' => 'apuc\channels_webhook\modules\test\Test',
    ],
]