承接 websvc/php-rocketchat-webhooks 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

websvc/php-rocketchat-webhooks

最新稳定版本:1.0.0

Composer 安装命令:

composer require websvc/php-rocketchat-webhooks

包简介

A PHP interface to send requests to Rocket Chat incoming webhooks.

README 文档

README

Send requests to Rocket Chat Incoming Webhooks

Tested with Rocket Chat server v 0.63.0

Install

composer require websvc/php-rocketchat-webhooks 1.0.0

Rocket Chat setup

Create a new Incomming Hook in Administration and retrieve the URL with token.

Usage

Simple message:

$client = new \PhpRocketChatWebhooks\Client('https://rocket.chat/hooks/TOKEN', "Optional-Username");
$client->sendRequest("Hello World!");

Message with attachment:

$client = new \PhpRocketChatWebhooks\Client('https://rocket.chat/hooks/TOKEN', "Optional-Username");
$client->sendRequest("Hello World!", [
                    'title' => "Google homepage",
                    'title_link' => "https://google.com",
                    'text' => "text text text text text text text",
                    'image_url' => "https://www.google.pt/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png",
                ]);

Buy me a cofee

If You'd like to thank me you can buy me a cofee. Cofee is never too much :)

https://www.buymeacoffee.com/websvc

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-04-08