1. Go to this page and download the library: Download nimbles-nl/laravel-slack library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
nimbles-nl / laravel-slack example snippets
php
use GuzzleHttp\Client as GuzzleClient;
use Http\Adapter\Guzzle6\Client as GuzzleAdapter;
$this->app->singleton('http.client', function() {
return new GuzzleAdapter(new GuzzleClient());
});
php
Nimbles\Slack\SlackServiceProvider::class,
php artisan vendor:publish
php
$slackMessage = new SlackMessage('You re looking great today!', '#general', 'AwesomeBot', 'https://www.link-to-avatar.com/image.png');
app('slack')->sendMessage($slackMessage);
php
Slack::sendMessage(new SlackMessage('You are looking great today!'));
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.