arkhipovandrei/yii2-dnevnik-authclient

Dnevnik.ru extenion for using via yii2-authclient

0.0.1 2017-04-05 11:50 UTC

This package is auto-updated.

Last update: 2024-11-04 20:09:55 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License composer.lock available

The preferred way to install this extension is through composer.

Installation

The preferred way to install this extension is through composer.

Either run

composer require --prefer-dist arkhipovandrei/yii2-dnevnik-authclient

or add

"arkhipovandrei/yii2-dnevnik-authclient": "*"

to the require section of your composer.json.

Usage

'components' => [
   // ...
    'authClientCollection' => [
        'class' => 'yii\authclient\Collection',
        'clients' => [
            'dnevnik' => [
                'class' => 'arkhipovandrei\authclient\Dnevnik',
                'clientId' => 'API_KEY',
                'clientSecret' => 'SECRET_KEY',
                'scope' => 'avatar, fullname'
                //'staging' =>  bool  true or false. Default value false 
            ],
        ],
    ],
    // ...
 ]