PHP code example of changyuan / yii2-authclient
1. Go to this page and download the library: Download changyuan/yii2-authclient 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/ */
changyuan / yii2-authclient example snippets
//The first way in view:
<?= yii\authclient\widgets\AuthChoice::widget([
'baseAuthUrl' => ['site/auth']
]);