2017 © Pedro Peláez
 

library slack

a class for Slack service integration using Slack's incoming webhooks.

image

combustiblelabs/slack

a class for Slack service integration using Slack's incoming webhooks.

  • Saturday, September 19, 2015
  • by pumplerod
  • Repository
  • 0 Watchers
  • 0 Stars
  • 4 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Combustible Labs - Slack Class

Based off of the Slack Class from the laravel package: Envoy., (*1)

I've made small modifications to the Slack class to make it easier to change some of the Slack message settings., (*2)

please note: This is a very simple implementation which works, however for a more robust and better documented Slack integration I would recommend cleentfaar/slack, (*3)

Installation

to composer.json:, (*4)

require:, (*5)

#!code

                "combustiblelabs/slack": "0.1.*"

repositories (though this has been placed on packagist.org so you should no longer need to add the repository):, (*6)

#!code

                {"type": "git",
                "url": "https://bitbucket.org/combustiblelabs/slack"}

Then run..., (*7)

               composer update

Usage

$channel can either be a slack channel name ( #channel-name ) or a user ( '@'username )., (*8)

$username is the name for the Slack Bot that will show up in your slack messages window., (*9)

#!code

                use Slack;

                $sm = Slack::make(
                    ['hook' => env('SLACK_INCOMING_WEBHOOK_URL'),
                        'message' => $message,
                        'channel' => $channel,
                        'username' => $username,
                        'icon_emoji' => ":bowtie:"]);
                $sm->send();

If you'd like you may alias the class by placing this in app.php..., (*10)

            'Slack'     => CombustibleLabs\Slack\Slack::class,

The Versions

19/09 2015

dev-master

9999999-dev https://bitbucket.org/combustiblelabs/slack

a class for Slack service integration using Slack's incoming webhooks.

  Sources   Download

MIT

The Requires

 

by Todd Shifflett

laravel slack

19/09 2015

v0.1.1

0.1.1.0 https://bitbucket.org/combustiblelabs/slack

a class for Slack service integration using Slack's incoming webhooks.

  Sources   Download

MIT

The Requires

 

by Todd Shifflett

laravel slack

19/09 2015

v0.1.0

0.1.0.0

Slack service integration

  Sources   Download

MIT

The Requires

 

by Todd Shifflett