PHP code example of kotchuprik / yii2-odnoklassniki-authclient

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

    

kotchuprik / yii2-odnoklassniki-authclient example snippets


'components' => [
    'authClientCollection' => [
        'class' => 'yii\authclient\Collection',
        'clients' => [
            'odnoklassniki' => [
                'class' => 'kotchuprik\authclient\Odnoklassniki',
                    'applicationKey' => 'odnoklassniki_app_public_key',
                    'clientId' => 'odnoklassniki_app_id',
                    'clientSecret' => 'odnoklassniki_client_secret',
                ],
            ],
            // other clients
        ],
    ],
    // ...
 ]
 

php composer.phar