PHPackages                             littlechou/line-login - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. littlechou/line-login

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

littlechou/line-login
=====================

0.5.1(6y ago)7434MITPHPPHP &gt;=5.4CI failing

Since Jun 24Pushed 6y ago1 watchersCompare

[ Source](https://github.com/slps970093/LineLogin-ForPHP)[ Packagist](https://packagist.org/packages/littlechou/line-login)[ RSS](/packages/littlechou-line-login/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (3)Used By (0)

Line Login For PHP unofficial
=============================

[](#line-login-for-php--unofficial)

[![Build Status](https://camo.githubusercontent.com/f623d8eaad15de2f05ae1a9b63be93d8c7ab6c032347bb12cbd41c79e8a78156/68747470733a2f2f7472617669732d63692e6f72672f736c70733937303039332f4c696e654c6f67696e2d466f725048502e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/slps970093/LineLogin-ForPHP)

> ### 環境要求
>
> [](#環境要求)

- PHP 5.4 以上
- PHP-CURL
- Laravel 5.2 以上 （非必要）

> ### Laravel 安裝教學
>
> [](#laravel-安裝教學)

- Composer 安裝

```
composer require littlechou/line-login

```

- 在 .env 新增以下參數 並填寫相關 LINE API 所需資訊

```
LINE_CLIENT_ID =
LINE_REDIRECT_URI =
LINE_CLIENT_SECRET =
LINE_SCOPE =

```

- 調整 app\\config\\app.php 找到 providers 並新增

```
LittleChou\LineLogin\ServiceProvider\LineLoginServiceProvider::class,

```

- 調整 app\\config\\app.php 找到 aliases 並新增

```
'LineProfile' => LittleChou\LineLogin\Facades\LineProfile::class,

```

> ### 使用說明
>
> [](#使用說明)

- 在你的 Blade 裡面 填寫以下程式碼，會產生認證網址

```
Line Login

```

- 接著 在你 CallBack 的 Controller 裡面的 function 中 填寫以下程式碼 即可取得 Line 使用者資訊，並使用命名空間

```
use LineProfile;

public function lineCallBackProfile(Request $request){

    $code = $request->get('code');

    $profile = LineProfile::get($code);

}
```

> ### 非 Laravel 環境下使用方法
>
> [](#非-laravel-環境下使用方法)

**以下為 CodeIgniter 3 做為範本**

```
use LittleChou\LineLogin\ConfigManager;
use LittleChou\LineLogin\LineProfiles;
use LittleChou\LineLogin\LineAuthorization;

class LineController extends CI_Controller {

    private $lineConfig;

    public function __construct() {
        $config = new ConfigManager();
        $config->setRedirectUri("YOUR-REDIRECT-URI")
            ->setScope("YOUR-SCOPE")
            ->setClientSecret("YOUR-CLINET-SECRET")
            ->setClientId("YOUR-CLIENT-ID");
        $this->lineConfig = $config;
    }

    /**
     * 產生連結
     *
     */
    public function lineLogin() {
        $auth = new LineAuthorization($this->lineConfig);
        echo $auth->createAuthUrl();
    }

    /**
     * 取得使用者資訊
     *
     */
    public function getLineProfile() {
        $code = $this->input->get('code');

        $lineProfile = new LineProfiles($this->lineConfig);

        $profile = $lineProfile->get($code);
    }
}
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2513d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b20f2725e446732545c1e4cff778e24a493de4b09707b97ae902aaf192717503?d=identicon)[slps970093](/maintainers/slps970093)

---

Top Contributors

[![slps970093](https://avatars.githubusercontent.com/u/8385770?v=4)](https://github.com/slps970093 "slps970093 (42 commits)")

---

Tags

loginline

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/littlechou-line-login/health.svg)

```
[![Health](https://phpackages.com/badges/littlechou-line-login/health.svg)](https://phpackages.com/packages/littlechou-line-login)
```

###  Alternatives

[overtrue/socialite

A collection of OAuth 2 packages.

1.4k5.5M87](/packages/overtrue-socialite)[auth0/auth0-php

PHP SDK for Auth0 Authentication and Management APIs.

40820.2M68](/packages/auth0-auth0-php)[auth0/login

Auth0 Laravel SDK. Straight-forward and tested methods for implementing authentication, and accessing Auth0's Management API endpoints.

2745.0M3](/packages/auth0-login)[cesargb/laravel-magiclink

Create secure link for access to private data or login in Laravel without password

4571.3M](/packages/cesargb-laravel-magiclink)[socialconnect/auth

Social Connect Auth Component

568845.4k5](/packages/socialconnect-auth)[delight-im/auth

Authentication for PHP. Simple, lightweight and secure.

1.3k135.7k20](/packages/delight-im-auth)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
