PHP code example of biteit / simple-slack-messenger
1. Go to this page and download the library: Download biteit/simple-slack-messenger library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
biteit / simple-slack-messenger example snippets
$messenger = new \BiteIT\SimpleSlackMessenger('YOUR_WEBHOOK_URL');
$msg = new \BiteIT\SimpleSlackMessage();
$msg->setText('Hello')
->setName('MyBotName')
->setIconEmoji('hankey');
$messenger->sendSimpleMessage($msg);