PHP code example of mediawiki / slack

1. Go to this page and download the library: Download mediawiki/slack 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/ */

    

mediawiki / slack example snippets


   # Enable the Slack extension
   n options
   $wgSlackWebhookURL = "THE INTEGRATION URL FROM STEP 4";
   $wgSlackUserName = "THE USERNAME YOU WANT YOUR BOT TO HAVE IN SLACK";
   $wgSlackChannel = "#theChannelForBotMessagesToAppearIn";
   

$wgSlackLinkUsers = true;

$wgSlackIgnoreMinor = true;