Package Data | |
---|---|
Maintainer Username: | bluora |
Maintainer Contact: | rocco@bluora.com.au (Rocco Howard) |
Package Create Date: | 2017-06-01 |
Package Last Update: | 2017-07-04 |
Home Page: | |
Language: | PHP |
License: | BSD-2-Clause |
Last Refreshed: | 2024-11-15 15:07:32 |
Package Statistics | |
---|---|
Total Downloads: | 12 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
_____ _ _ __ _ _
/ ____| | | | / _| | | | |
| (___ | | __ _ ___| | __ | |_ ___ _ __ | | __ _ _ __ __ ___ _____| |
\___ \| |/ _` |/ __| |/ / | _/ _ \| '__| | | / _` | '__/ _` \ \ / / _ \ |
____) | | (_| | (__| < | || (_) | | | |___| (_| | | | (_| |\ V / __/ |
|_____/|_|\__,_|\___|_|\_\ |_| \___/|_| |______\__,_|_| \__,_| \_/ \___|_|
Provides Slack for Laravel.
This package has been adapted by H&H|Digital, an Australian botique developer. Visit us at hnh.digital.
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
.
The config file comes with defaults and placeholders. Configure at least one team and any defaults you'd like to change.
// 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!');
Please see CONTRIBUTING for details.
The BSD 2-clause. Please see License File for more information.