arga / laravel-line
An easy to use social called LINE in Laravel.
1.0.0
2020-03-27 15:13 UTC
Requires
- php: ^7.2
- ext-json: *
- guzzlehttp/guzzle: ~6.2
- illuminate/support: ~5.8.0|^6.0|^7.0
- laravel/helpers: ^1.1
Requires (Dev)
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2025-03-28 02:05:45 UTC
README
This package was created for my project and made it easier for others.
Installation
$ composer require arga/laravel-line
To publish the config settings:
$ php artisan vendor:publish --provider="Arga\LaravelLine\LaravelLineServiceProvider"
Usage SDK
1.Facade
$authorize = LaravelLine::authorize();
2.Container
$line = app(LineManager::class); $authorize = $line->authorize();
Function
Get authorize url
LaravelLine::authorize();
Get token
$token = LaravelLine::token($request->get('code'));
Get profile
$profile = LaravelLine::profile($token);
Verify token
$verify = LaravelLine::verify_token($token);
Renew token with refresh token
$token = LaravelLine::refresh_token($refresh_token);
Logout
LaravelLine::logout($token)
License
This package is licensed under MIT. You are free to use it in personal and commercial projects.