A simple Laravel 4 package for sending messages to Slack with incoming webhooks.
You can install the package using the Composer package manager. Assuming you have Composer installed globally:
composer require maknz/slack:0.1.*
Next, add the Maknz\Slack\SlackServiceProvider
service provider to the providers
array in your app/config.php
file.
'providers' => array(
...
'Maknz\Slack\SlackServiceProvider',
),
and then add the facade to your aliases
array in your app/config.php
file.
'aliases' => array(
...
'Slack' => 'Maknz\Slack\Facades\Slack',
),
Publish the configuration with
php artisan config:publish maknz/slack
and add the URL to the webhook. If you haven't already created an incoming webhook for the package to use, create one in your Slack backend. The URL will be available under the "Instructions for creating Incoming WebHooks" panel.