PHP code example of esp4ik / yii2-authclient-extended

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

    

esp4ik / yii2-authclient-extended example snippets


return [
    'components' => [
        'authClientCollection' => [
            'class' => 'yii\authclient\Collection',
            'clients' => [
                'instagram' => [
                    'class' => 'esp4ik\authclient\clients\Instagram',
                    'clientId' => 'instagram_client_id',
                    'clientSecret' => 'instagram_client_secret',
                ],
                'odnoklassniki' => [
                    'class' => 'esp4ik\authclient\clients\Odnoklassniki',
                    'clientId' => 'odnoklassniki_application_id',
                    'clientSecret' => 'odnoklassniki_secret_key',
                    'applicationId' => 'odnoklassniki_public_key',
                ],
                // ...
            ],
        ]
        // ...
    ],
    // ...
];