PHP code example of pa3py6aka / yii2-discord-authclient

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

    

pa3py6aka / yii2-discord-authclient example snippets


'components' => [
    'authClientCollection' => [
        'class' => 'yii\authclient\Collection',
        'clients' => [
            'discord' => [
                'class' => 'pa3py6aka\yii2auth\DiscordClient',
                'clientId' => 'discord_client_id',
                'clientSecret' => 'discord_client_secret',
            ],
            // other clients
        ],
    ],
    // ...
 ]