1. Go to this page and download the library: Download setemares/freee-socialite 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/ */
setemares / freee-socialite example snippets
use SeteMares\Freee\Provider as FreeeProvider;
$this->bootFreeeSocialite();
private function bootFreeeSocialite()
{
$socialite = $this->app->make('Laravel\Socialite\Contracts\Factory');
$socialite->extend('freee', function ($app) use ($socialite) {
$config = $app['config']['services.freee'];
return $socialite->buildProvider(FreeeProvider::class, $config);
});
}