2017 © Pedro Peláez
 

library laravel-slack

Laravel integration for the hnhdigital-os/php-slack package.

image

hnhdigital-os/laravel-slack

Laravel integration for the hnhdigital-os/php-slack package.

  • Tuesday, July 4, 2017
  • by bluora
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

   _____ _            _       __             _                               _ 
  / ____| |          | |     / _|           | |                             | |
 | (___ | | __ _  ___| | __ | |_ ___  _ __  | |     __ _ _ __ __ ___   _____| |
  \___ \| |/ _` |/ __| |/ / |  _/ _ \| '__| | |    / _` | '__/ _` \ \ / / _ \ |
  ____) | | (_| | (__|   <  | || (_) | |    | |___| (_| | | | (_| |\ V /  __/ |
 |_____/|_|\__,_|\___|_|\_\ |_| \___/|_|    |______\__,_|_|  \__,_| \_/ \___|_|

Provides Slack for Laravel., (*1)

Latest Stable Version Total Downloads Latest Unstable Version Built for Laravel License, (*2)

StyleCI Issue Count Code Climate, (*3)

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

Install

Via composer:, (*5)

$ composer require bluora/laravel-slack dev-master, (*6)

Enable the service provider by editing config/app.php:, (*7)

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

Enable the facade by editing config/app.php:, (*8)

    '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., (*9)

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

Configuration

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

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., (*12)

Credits

License

The BSD 2-clause. Please see License File for more information., (*13)

The Versions

04/07 2017

dev-master

9999999-dev

Laravel integration for the hnhdigital-os/php-slack package.

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

by Avatar maknz

laravel slack