PHPackages                             pfinal/passport - 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. pfinal/passport

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

pfinal/passport
===============

passport

v1.0.7(4y ago)133MITPHPPHP &gt;=5.4

Since Dec 12Pushed 4y ago1 watchersCompare

[ Source](https://github.com/pfinal/passport)[ Packagist](https://packagist.org/packages/pfinal/passport)[ Docs](http://www.pfinal.cn)[ RSS](/packages/pfinal-passport/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

```
CREATE TABLE IF NOT EXISTS `user` (
  `id` int NOT NULL PRIMARY KEY AUTO_INCREMENT,
  `username` varchar(50) UNIQUE COMMENT '帐号',
  `email` varchar(255) UNIQUE COMMENT '邮箱',
  `mobile` varchar(50) UNIQUE COMMENT '手机',
  `password_hash` varchar(255) NOT NULL DEFAULT '',
  `change_password_at` DEFAULT NULL COMMENT '修改密码时间',
  `created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='User';

CREATE TABLE IF NOT EXISTS `token` (
  `id` int NOT NULL PRIMARY KEY AUTO_INCREMENT,
  `token` CHAR(32) UNIQUE NOT NULL COMMENT 'Token',
  `user_id` INT NOT NULL COMMENT 'UserId',
  `created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Token';

CREATE TABLE IF NOT EXISTS oauth(
  `id` INT AUTO_INCREMENT PRIMARY KEY,
  `platform` VARCHAR(50) NOT NULL DEFAULT '', -- qq、weibo、wechat、github
  `appid` VARCHAR(100) NOT NULL DEFAULT '',
  `openid` VARCHAR(100) NOT NULL DEFAULT '',
  `user_id` INT NOT NULL,
  `created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` DATETIME NOT NULL,
  unique (appid, openid, platform, user_id),
  KEY ind_user(user_id, platform)
)ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=1001 COMMENT='OAuth';

```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

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 ~270 days

Total

2

Last Release

1758d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17738136?v=4)[zouyiliang](/maintainers/pfinal)[@pfinal](https://github.com/pfinal)

### Embed Badge

![Health badge](/badges/pfinal-passport/health.svg)

```
[![Health](https://phpackages.com/badges/pfinal-passport/health.svg)](https://phpackages.com/packages/pfinal-passport)
```

###  Alternatives

[google/auth

Google Auth Library for PHP

1.4k294.2M218](/packages/google-auth)[thenetworg/oauth2-azure

Azure Active Directory OAuth 2.0 Client Provider for The PHP League OAuth2-Client

25310.7M83](/packages/thenetworg-oauth2-azure)[stevenmaguire/oauth2-keycloak

Keycloak OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2306.4M45](/packages/stevenmaguire-oauth2-keycloak)[robsontenorio/laravel-keycloak-guard

🔑 Simple Keycloak Guard for Laravel

5181.2M3](/packages/robsontenorio-laravel-keycloak-guard)[ellaisys/aws-cognito

Laravel Authentication using AWS Cognito (Web and API)

123256.9k1](/packages/ellaisys-aws-cognito)[rainlab/user-plugin

User plugin for October CMS

11955.0k15](/packages/rainlab-user-plugin)

PHPackages © 2026

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