opencontent/ocwebhookserver-ls
最新稳定版本:1.2.5
Composer 安装命令:
composer require opencontent/ocwebhookserver-ls
包简介
Opencontent Webhook Server
README 文档
README
A webhook is a way to provide information to another app about a particular event. The way the two apps communicate is with a simple HTTP request.
This eZPublish legacy extension allows you to configure and send webhooks easily.
Installation
- Require package
composer require opencontent/ocwebhookserver-ls - Enable extension in site.ini
- Regenerate autoloads and clear cache
- Create your webhook in
/webhook/list - Run the worker
php extension/ocwebhookserver/bin/php/worker.php
Default trigger
A post publish trigger is available: to activate it, you need to configure the workflow 'Post publish webhook' in content/after trigger
Create new trigger
To add your own trigger:
- create a
OCWebHookTriggerInterfaceimplementation - configure it in
webhook.ini [TriggersSettings]TriggerList - put in your code the event trigger method
OCWebHookEmitter::emit(
<your_trigger_identifier>,
<your_json_serializable_payload>,
OCWebHookQueue::defaultHandler()
);
see for example eventtypes/event/workflowwebhook/workflowwebhooktype.php
Todo
- trigger filter configurations
- payload configurations
- worker evolutions
统计信息
- 总下载量: 6.39k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2019-12-06