PHP code example of lister169126 / slack-webhook-message
1. Go to this page and download the library: Download lister169126/slack-webhook-message 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/ */
lister169126 / slack-webhook-message example snippets
$slack = $container->getByType(lister169126\SlackWebhookMessage\SlackMessage::class);
$slack->sendMessage('test alert');
$slack = new lister169126\SlackWebhookMessage\SlackMessage('https://xyz');
$slack->sendMessage('test alert');