apuc / yii2-channels-webhook
扩展,允许在保存模型后抛出webhook
dev-master / 1.0.6.x-dev
2019-10-24 10:21 UTC
Requires
- yiisoft/yii2: ~2.0.0
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',
],
]