revolution / socialite-freee
This package is abandoned and no longer maintained.
No replacement package was suggested.
Socialite for Freee
1.0.0
2020-02-19 07:25 UTC
Requires
- php: ^7.2||^8.0
- ext-json: *
- laravel/socialite: *
Requires (Dev)
- mockery/mockery: ^1.0
- orchestra/testbench: ^4.0
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2024-03-15 11:52:41 UTC
README
https://developer.freee.co.jp/
Requirements
- PHP >= 7.2
Installation
composer require revolution/socialite-freee
config/services.php
'freee-accounting' => [
'client_id' => env('FREEE_ACCOUNTING_CLIENT_ID'),
'client_secret' => env('FREEE_ACCOUNTING_CLIENT_SECRET'),
'redirect' => env('FREEE_ACCOUNTING_REDIRECT', '/auth-callback'),
],
.env
FREEE_ACCOUNTING_CLIENT_ID=
FREEE_ACCOUNTING_CLIENT_SECRET=
FREEE_ACCOUNTING_REDIRECT=
Usage
routes/web.php
Route::get('/', 'LoginController@redirect');
Route::get('auth-callback', 'LoginController@callback');
LoginController
namespace App\Http\Controllers; use Laravel\Socialite\Facades\Socialite; class LoginController extends Controller { public function redirect() { return Socialite::driver('freee-accounting')->redirect(); } public function callback() { $user = Socialite::driver('freee-accounting')->user(); dd($user); } }
LICENCE
MIT