PHPackages                             zngue/laravel\_user - 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. zngue/laravel\_user

ActiveLibrary

zngue/laravel\_user
===================

zngue permission library 用户管理

v1.1.2(6y ago)04MITPHPCI failing

Since Dec 30Pushed 6y ago1 watchersCompare

[ Source](https://github.com/zngue/laravel_user)[ Packagist](https://packagist.org/packages/zngue/laravel_user)[ RSS](/packages/zngue-laravel-user/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (4)Used By (0)

安装
--

[](#安装)

```
composer require zngue/laravel_user

```

发布命令
----

[](#发布命令)

```
php artisan vendor:publish --provider="Zngue\User\ZngUserServiceProvider"

```

创建数据库
-----

[](#创建数据库)

```
CREATE TABLE `zng_users` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `code_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '平台id',
  `nickname` varchar(255) CHARACTER SET utf8mb4 DEFAULT '' COMMENT '昵称',
  `username` varchar(255) DEFAULT NULL,
  `gender` varchar(10) DEFAULT NULL,
  `phone` varchar(50) DEFAULT NULL,
  `remember_token` varchar(255) DEFAULT NULL,
  `department_id` varchar(255) DEFAULT NULL COMMENT '部门ID',
  `password` varchar(255) DEFAULT NULL,
  `email` varchar(255) DEFAULT NULL,
  `status` int(11) DEFAULT NULL COMMENT '状态 1正常 0锁定 2离职',
  `memo` text,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  `deleted_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='用户表';

```

laravel\_jwt 快速 配置文件发布 如下
-------------------------

[](#laravel_jwt-快速-配置文件发布-如下)

```
php artisan vendor:publish --provider="Tymon\JWTAuth\Providers\LaravelServiceProvider"

```

jwt生成秘钥
-------

[](#jwt生成秘钥)

```
php artisan jwt:secret

```

jwt 注册门面
--------

[](#jwt-注册门面)

config/app.php 添加代码

```
'aliases' => [
        ...
        // 添加以下两行
        'JWTAuth' => 'Tymon\JWTAuth\Facades\JWTAuth',
        'JWTFactory' => 'Tymon\JWTAuth\Facades\JWTFactory',
],

```

jwt 详情安装
--------

[](#jwt-详情安装)

安装详细教程

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Total

3

Last Release

2307d ago

### Community

Maintainers

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

---

Top Contributors

[![zngue001](https://avatars.githubusercontent.com/u/129204944?v=4)](https://github.com/zngue001 "zngue001 (11 commits)")

### Embed Badge

![Health badge](/badges/zngue-laravel-user/health.svg)

```
[![Health](https://phpackages.com/badges/zngue-laravel-user/health.svg)](https://phpackages.com/packages/zngue-laravel-user)
```

###  Alternatives

[orchestra/workbench

Workbench Companion for Laravel Packages Development

8017.0M43](/packages/orchestra-workbench)[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3691.5k](/packages/codewithdennis-larament)

PHPackages © 2026

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