PHP code example of shucream0117 / slack-php

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

    

shucream0117 / slack-php example snippets


$slack = new Slack('http://your-slack-incoming-webhook-url');

// send a message with mention
$slack->send('this message will be posted']);

// send a message with mention
$slack->send('mention!!', ['@HOGEFUGA']);