$ composer require petehouston/slack-simple-webhooks
use Petehouston\Slack\SlackClient;
$config = [
'webhookUrl' => '',
'channel' => '',
'username' => '',
'icon_emoji' => ''
];
$slack = new SlackClient($config);
$result = $slack->send('This is a test message'); // return true or false on result
MIT @ 2018 by Pete Houston.