PHP code example of dnshouse / yii2-authclient-extended

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

    

dnshouse / yii2-authclient-extended example snippets


'components' => [
    'authClientCollection' => [
        'class' => 'yii\authclient\Collection',
        'clients' => [
            'google' => [
                'class' => 'dnshouse\Yii2AuthclientExtensions\GoogleOAuth',
                'clientId' => '',
                'clientSecret' => '',
            ],
            'yahoo' => [
                'class' => 'dnshouse\Yii2AuthclientExtensions\Yahoo',
                'clientId' => '',
                'clientSecret' => '',
            ],
            'live' => [
                'class' => 'dnshouse\Yii2AuthclientExtensions\Live',
                'clientId' => '',
                'clientSecret' => '',
            ],
            'facebook' => [
                'class' => 'dnshouse\Yii2AuthclientExtensions\Facebook',
                'clientId' => '',
                'clientSecret' => '',
            ],
            'linkedin' => [
                'class' => 'dnshouse\Yii2AuthclientExtensions\LinkedIn',
                'clientId' => '',
                'clientSecret' => '',
            ],
            'twitter' => [
                'class' => 'dnshouse\Yii2AuthclientExtensions\Twitter',
                'consumerKey' => '',
                'consumerSecret' => '',
            ],
        ],
    ],
 ]
 

php composer.phar