hnhdigital-os/laravel-slack

Laravel integration for the hnhdigital-os/php-slack package.
12
Install
composer require hnhdigital-os/laravel-slack
PHP:>=7.0.0
License:BSD-2-Clause
Last Updated:Jul 4, 2017
Links: GitHub  ·  Packagist
Maintainer: bluora
   _____ _            _       __             _                               _ 
  / ____| |          | |     / _|           | |                             | |
 | (___ | | __ _  ___| | __ | |_ ___  _ __  | |     __ _ _ __ __ ___   _____| |
  \___ \| |/ _` |/ __| |/ / |  _/ _ \| '__| | |    / _` | '__/ _` \ \ / / _ \ |
  ____) | | (_| | (__|   <  | || (_) | |    | |___| (_| | | | (_| |\ V /  __/ |
 |_____/|_|\__,_|\___|_|\_\ |_| \___/|_|    |______\__,_|_|  \__,_| \_/ \___|_|
                                                                               

Provides Slack for Laravel.

Latest Stable Version Total Downloads Latest Unstable Version Built for Laravel License

StyleCI Issue Count Code Climate

This package has been adapted by H&H|Digital, an Australian botique developer. Visit us at hnh.digital.

Install

Via composer:

$ composer require bluora/laravel-slack dev-master

Enable the service provider by editing config/app.php:

    'providers' => [
        ...
        Bluora\LaravelSlack\ServiceProvider::class,
        ...
    ];

Enable the facade by editing config/app.php:

    'aliases' => [
        ...
        'Slack' => Bluora\LaravelSlack\Facade::class,
        ...
    ];

Then create an incoming webhook for each Slack team you'd like to send messages to. You'll need the webhook URL(s) in order to configure this package.

Finally, publish the config file with php artisan vendor:publish. You'll find it at config/slack.php.

Configuration

The config file comes with defaults and placeholders. Configure at least one team and any defaults you'd like to change.

Usage

// Send a message to the default channel
Slack::send('Hello world!');

// Send a message to a different channel
Slack::to('#accounting')->send('Are we rich yet?');

// Send a private message
Slack::to('@username')->send('psst!');

Contributing

Please see CONTRIBUTING for details.

Credits

License

The BSD 2-clause. Please see License File for more information.

Related Packages

nicolasmahe/laravel-slack-output

Sends a message to Slack when something goes wrong with your Laravel application...

42,975 27
tlapi/slack-laravel

Laravel 4 and 5 integration for the maknz/slack package, including facades and s...

137,449 1
maknz/slack-laravel

Laravel 4 and 5 integration for the maknz/slack package, including facades and s...

989,504 154
razorpay/slack-laravel

Laravel 4 and 5 integration for the razorpay/slack package, including facades an...

377,264 18
maknz/slack

A simple PHP package for sending messages to Slack, with a focus on ease of use...

12,154,389 1,161