# swoole-webhook **Repository Path**: keyanz/swoole-webhook ## Basic Information - **Project Name**: swoole-webhook - **Description**: 基于 Swoole 花了一小时不到写出来的 Gitee WebHook 服务,急着自用的简陋勿喷,有需要的拿去用~ - **Primary Language**: PHP - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 6 - **Created**: 2021-04-01 - **Last Updated**: 2021-04-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # swoole-webHook #### 项目介绍 基于 Swoole 花了一小时不到写出来的 Gitee WebHook 服务,急着自用的简陋勿喷,有需要的拿去用~ #### 软件架构 软件架构说明 ``` /bin/install-service 把web hook 服务注册进系统的service run.php 启动web hook 服务 ``` #### 安装教程 1. composer install 2. 进入/bin目录下,安装 ./install-service #### 使用说明 1. 更改config.json 中的仓库信息和执行命令 2. service webhook start 开启web hook服务 或者 php run.php(非后台任务,如需后台可以配合nohup) 3. 进入gitee或者github仓库设置公钥(建议)然后在WebHooks 管理中设置地址(http://127.0.0.1(你的公网ip-需要公网能访问):12580/gitee) 4. github 为 (http://127.0.0.1(你的公网ip-需要公网能访问):12580/github) 5. 注意:WebHook 密码/签名密钥需和config.json中的password对应 #### 参与贡献 1. Fork 本项目 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request