PHPackages                             linuzilla/portal3g-php-oauth - 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. linuzilla/portal3g-php-oauth

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

linuzilla/portal3g-php-oauth
============================

OAuth for NCU Portal 3G

31.2k1PHP

Since Feb 2Pushed 9y ago1 watchersCompare

[ Source](https://github.com/ncucc/portal3g-php-oauth)[ Packagist](https://packagist.org/packages/linuzilla/portal3g-php-oauth)[ RSS](/packages/linuzilla-portal3g-php-oauth/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

portal3g-php-oauth
==================

[](#portal3g-php-oauth)

這個是用 Laravel 5.2 的系統連上中央大學第三代 portal 系統 (Portal 3G) 使用的 OAuth 設定, 使用方式如下:

修改 composer.json, 加上

```
    "require": {
        "linuzilla/portal3g-php-oauth": "dev-master",
        "oriceon/oauth-5-laravel": "dev-master#3f6c663b48c9878cc1d8c56e16ad6c2c3d019dc8"
    },
```

執行 composer update 將需要的 package 安裝進來 修改 config/app.php 的設定 (請參考 "oriceon/oauth-5-laravel" 的說明

```
'providers' => [
    // ...
    Artdarek\OAuth\OAuthServiceProvider::class,
]

'aliases' => [
    // ...

    'OAuth' => Artdarek\OAuth\Facade\OAuth::class,
]
```

然後執行 php artisan vendor:publish, 這個動作會產生 config/oauth-5-laravel.php 檔案, 編輯這個檔案加入我們設定

```
'NCUPortal' => [
    'client_id'     => '',
    'client_secret' => '',
    'scope'         => [ 'xxx', 'xxx' ]
 ],
```

當然, client\_id 及 client\_secret 是自 portal3g 取得的, scope 則是系統希望使用者授權的.

基本上, 這樣就算完成, 剩下的部份是應用程式自己要去配合需要去撰寫的

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![linuzilla](https://avatars.githubusercontent.com/u/1409513?v=4)](https://github.com/linuzilla "linuzilla (9 commits)")

### Embed Badge

![Health badge](/badges/linuzilla-portal3g-php-oauth/health.svg)

```
[![Health](https://phpackages.com/badges/linuzilla-portal3g-php-oauth/health.svg)](https://phpackages.com/packages/linuzilla-portal3g-php-oauth)
```

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.3M17](/packages/kartik-v-yii2-password)[vitalybaev/laravel5-dkim

Laravel 5/6 package for signing outgoing messages with DKIM.

3163.1k](/packages/vitalybaev-laravel5-dkim)

PHPackages © 2026

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