kotchuprik / yii2-instagram-authclient
Instagram extenion for using via yii2-authclient
Installs: 41 243
Dependents: 0
Suggesters: 0
Security: 0
Stars: 20
Watchers: 5
Forks: 11
Open Issues: 3
Requires
- yiisoft/yii2-authclient: ~2.0@dev
This package is not auto-updated.
Last update: 2024-11-04 10:41:13 UTC
README
This extension adds Instagram OAuth2 supporting for yii2-authclient.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist kotchuprik/yii2-instagram-authclient "*"
or add
"kotchuprik/yii2-instagram-authclient": "*"
to the require
section of your composer.json.
Usage
You must read the yii2-authclient docs
Register your application in Instagram
and add the Instagram client to your auth clients.
'components' => [ 'authClientCollection' => [ 'class' => 'yii\authclient\Collection', 'clients' => [ 'instagram' => [ 'class' => 'kotchuprik\authclient\Instagram', 'clientId' => 'instagram_client_id', 'clientSecret' => 'instagram_client_secret', ], // other clients ], ], // ... ]