PHP code example of maartenpaauw / php-slack-constants

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

    

maartenpaauw / php-slack-constants example snippets


use Maartenpaauw\Slack\Constants\Events;

Events::AppMention->value; // app_mention
Events::AppMention->supportsEventsApi(); // true
Events::AppMention->supportsRtmApi(); // false

use Maartenpaauw\Slack\Constants\Scopes;

Scopes::BookmarksRead->value; // bookmarks:read
Scopes::BookmarksRead->supportsApplicationLevelTokens(); // false
Scopes::BookmarksRead->supportsBotTokens(); // true
Scopes::BookmarksRead->supportsConfigurationTokens(); // false
Scopes::BookmarksRead->supportsUserTokens(); // true

use Maartenpaauw\Slack\Constants\Interactions;

Interactions::BlockActions->value; // block_actions
bash
composer