isudakoff/yii2-foursquare-authclient

Foursquare extension for using via yii2-authclient

1.0.1 2017-08-24 09:22 UTC

This package is auto-updated.

Last update: 2024-10-29 04:53:18 UTC


README

This extension adds Foursquare OAuth2 supporting for yii2-authclient.

License Total Downloads Latest Stable Version Latest Unstable Version

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist isudakoff/yii2-foursquare-authclient "*"

or add

"isudakoff/yii2-foursquare-authclient": "*"

to the require section of your composer.json.

Usage

You must read the yii2-authclient docs

Register your application in Foursquare

and add the Foursquare client to your auth clients.

'components' => [
    'authClientCollection' => [
        'class' => 'yii\authclient\Collection',
        'clients' => [
            'foursquare' => [
                'class' => 'isudakoff\authclient\Foursquare',
                'clientId' => 'foursquare_app_id',
                'clientSecret' => 'foursquare_app_secret',
            ],
            // other clients
        ],
    ],
    // ...
]