2017-25 © Pedro Peláez
 

library php-rocketchat-webhooks

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

image

websvc/php-rocketchat-webhooks

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

  • Sunday, May 20, 2018
  • by websvc
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 80 % Grown

The README.md

php-rocketchat-webhooks

Send requests to Rocket Chat Incoming Webhooks, (*1)

Tested with Rocket Chat server v 0.63.0, (*2)

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., (*3)

Usage

Simple message:, (*4)


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

Message with attachment:, (*5)

$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 :), (*6)

https://www.buymeacoffee.com/websvc, (*7)

The Versions

20/05 2018

dev-master

9999999-dev

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

  Sources   Download

MIT

08/04 2018

1.0.0

1.0.0.0

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

  Sources   Download

MIT