Skip to content
forked from maknz/slack

A simple PHP package for sending messages to Slack, with a focus on ease of use and elegant syntax. Includes Laravel support out of the box.

License

Notifications You must be signed in to change notification settings

mcampbell508/slack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slack

A simple Laravel 4 package for sending messages to Slack with incoming webhooks.

Installation

You can install the package using the Composer package manager. Assuming you have Composer installed globally:

composer require maknz/slack:0.1.*

Service provider and alias

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',
),

Configuration

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.

Usage

About

A simple PHP package for sending messages to Slack, with a focus on ease of use and elegant syntax. Includes Laravel support out of the box.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%