rexxars/imbo-http-hooks 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rexxars/imbo-http-hooks

最新稳定版本:1.0.0

Composer 安装命令:

composer require rexxars/imbo-http-hooks

包简介

Perform HTTP requests when Imbo events occur

README 文档

README

Fire HTTP requests when Imbo events occur

Usage

  • Require rexxars/imbo-http-hooks in your Imbo composer.json
  • Run composer install to install and set up autoloading
  • In your Imbo configuration file, under eventListeners, initialize the listener. Example:
<?php
return [
    'eventListeners' => [
        'httpHooks' => [
            'listener' => 'Rexxars\Imbo\HttpHookListener',
            'params' => [
                // Event name => URLs
                'images.post' => [
                    'http://some.url/new-image.php',
                    'http://some.url/analyze-image.php'
                ],
                'metadata.post' => [
                    'http://some.url/metadata-updated.php',
                ]
            ]
        ]
    ]
];

The URLs you provide to the listener will then receive a HTTP POST request every time the provided event is triggered. The POST body will contain information in the following format:

    'event' => 'images.post',
    'url' => 'http://some.imbo.install/users/someuser/images',
    'imageIdentifier' => 'some image identifier',
    'publicKey' => 'someuser',

With that information and a Imbo client, you can easily fetch the image, metadata or do other actions based on the information received.

License

MIT-licensed. See LICENSE.

统计信息

  • 总下载量: 11
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固