PHP code example of cblink / socialite-feishu
1. Go to this page and download the library: Download cblink/socialite-feishu 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/ */
cblink / socialite-feishu example snippets
'feishu' => [
'client_id' => env('FEISHU_CLIENT_ID'),
'client_secret' => env('FEISHU_CLIENT_SECRET'),
'redirect' => env('FEISHU_REDIRECT_URI')
],
protected $listen = [
\SocialiteProviders\Manager\SocialiteWasCalled::class => [
// ... other providers
'Cblink\\Socialite\\Feishu\\FeishuExtendSocialite@handle',
],
];
return Socialite::driver('feishu')->redirect();