PHP code example of beehamchoi / yii2-google1tap

1. Go to this page and download the library: Download beehamchoi/yii2-google1tap 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/ */

    

beehamchoi / yii2-google1tap example snippets


    public function actions(){
		return [
			'google-onetap' => [
				'class'           => Google1tapLogin::class,
				'successCallback' => function ($client){
				//Your code here. Can do any thing with $client. 
                //$client is infor of google user
				}
			]
		];
	}