File: public/hooks/webhook/index.php

Recommend this page to a friend!
  Classes of FN  >  PHP Typo3 Slack Channel Bot  >  public/hooks/webhook/index.php  >  Download  
File: public/hooks/webhook/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Typo3 Slack Channel Bot
Chat bot to interact in Typo3 Slack channel
Author: By
Last change:
Date: 2 years ago
Size: 456 bytes
 

Contents

Class file image Download
<?php
/**
 * T3Bot.
 *
 * @author Frank Nägler <frank.naegler@typo3.org>
 *
 * @link http://www.t3bot.de
 * @link http://wiki.typo3.org/T3Bot
 */
require_once __DIR__.'/../../../vendor/autoload.php';
require_once
__DIR__.'/../../../config/config.php';

// if we receive a POST request, it is for our bot
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    (new \
T3Bot\Controller\WebHookController($GLOBALS['config']))
        ->
process($_REQUEST['hook']);
}


For more information send a message to info at phpclasses dot org.