PHP code example of ggiovanini / slagger
1. Go to this page and download the library: Download ggiovanini/slagger 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/ */
ggiovanini / slagger example snippets
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
$dotenv->load();
Slagger::sendMessage('Hello Slack');
Slagger::withChannel('XXXXXXXXX')
->createMessage('Hello with Channel string!')
->send();
$outroChannel = new Channel('XXXXXXXXX');
Slagger::withChannel($outroChannel)
->createMessage('Hello with Channel object!')
->send();