arga/laravel-line

An easy to use social called LINE in Laravel.

1.0.0 2020-03-27 15:13 UTC

This package is auto-updated.

Last update: 2024-04-28 00:07:33 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.