PHP code example of fredbradley / cranleigh-slacker
1. Go to this page and download the library: Download fredbradley/cranleigh-slacker 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/ */
fredbradley / cranleigh-slacker example snippets
$slacker = new FredBradley\CranleighSlacker\Slacker();
$slacker->setWebhook("<SLACK WEBHOOK>")
->setRoom("<SLACK ROOM>")
->setUsername("Choose a Username");
$slacker->post("Write your post here");