PHP code example of jivesh / laravel-slack

1. Go to this page and download the library: Download jivesh/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/ */

    

jivesh / laravel-slack example snippets


/**
 * Package Service Provider
 */

'providers' => [
    // ...

    Gahlawat\Slack\SlackServiceProvider::class,
],

/**
 * Package Alias
 */

'aliases' => [
    // ...

    'Slack' => Gahlawat\Slack\Facade\Slack::class,
],

\Slack::send("your-message");

use Slack;

Slack::send("your-message");

Slack::send("your-message" [,"display-name" [,"display-emoji"] [,"#channel" or "@username"]]);

// here [] indicates optional parameters
config/app.php
config/app.php
sh
$ php artisan vendor:publish
config/slack.php