Registry / auth / yiisoft-yii2-authclient

yiisoft-yii2-authclient

JSON →
library2.2.17phppackagistunverified

External authentication via OAuth and OpenID for the Yii framework.

composer require yiisoft/yii2-authclient
INSTALL
IMPORT
SIG · YIISOFT-YII2-AUTHC
Y
yiisoft-yii2-authclient
authphpv2.2.17
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Collection
use yii\authclient\Collection;

Fetch user attributes from an OAuth provider (e.g., Google).

use yii\authclient\Collection; $authClientCollection = Yii::$app->get('authClientCollection'); $client = $authClientCollection->getClient('google'); $userAttributes = $client->fetchUserAttributes();
Debug
Known issues
gotchaRequires configuration of auth clients in the application config; not auto-discovered.
fix
Add 'authClientCollection' component to your Yii config with client definitions.
affects: >=2.0.0
Upgrade
Version history
2.2.17latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
24
OpenAI (training)
1
Resources
yiisoft-yii2-authclient — pip install yiisoft-yii2-authclient · libregistry