PHPackages                             lake/larke-admin - 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. lake/larke-admin

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

lake/larke-admin
================

An admin api library with JWT and RBAC.

2.2.0(1y ago)3236.8k685Apache-2.0PHPPHP ^8.2

Since Mar 10Pushed 7mo ago5 watchersCompare

[ Source](https://github.com/deatil/larke-admin)[ Packagist](https://packagist.org/packages/lake/larke-admin)[ Docs](https://github.com/deatil/larke-admin)[ RSS](/packages/lake-larke-admin/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (10)Dependencies (7)Versions (71)Used By (5)

larke-admin
-----------

[](#larke-admin)

larke-admin 是一套使用 Laravel、JWT 和 RBAC 鉴权的通用后台管理系统

### 项目介绍

[](#项目介绍)

- `larke-admin` 是基于 `laravel` 框架的后台管理系统，完全 api 接口化，适用于前后端分离的项目
- 基于 `JWT` 的用户登录态管理
- 权限判断基于 `php-casbin` 的 `RBAC` 授权
- 本项目为 `后台api服务`，`后台前端页面` 可查看 [Larke Admin Frontend](https://github.com/deatil/larke-admin-frontend) 项目

### 环境要求

[](#环境要求)

- PHP &gt;= 8.2
- Laravel &gt;= 11.0
- Fileinfo PHP Extension

### 截图预览

[](#截图预览)

   [![login](https://user-images.githubusercontent.com/24578855/103483910-8cec8780-4e25-11eb-93c5-ea7ce7a09b60.png)](https://user-images.githubusercontent.com/24578855/103483910-8cec8780-4e25-11eb-93c5-ea7ce7a09b60.png)   [![index](https://user-images.githubusercontent.com/24578855/105568367-cacd3380-5d73-11eb-98ab-55701d0068ed.png)](https://user-images.githubusercontent.com/24578855/105568367-cacd3380-5d73-11eb-98ab-55701d0068ed.png)     [![admin](https://user-images.githubusercontent.com/24578855/101988564-6bd8c100-3cd5-11eb-8524-21151ba3b404.png)](https://user-images.githubusercontent.com/24578855/101988564-6bd8c100-3cd5-11eb-8524-21151ba3b404.png)   [![admin-access](https://user-images.githubusercontent.com/24578855/103433753-db393500-4c31-11eb-8d8a-b40dfa0db84e.png)](https://user-images.githubusercontent.com/24578855/103433753-db393500-4c31-11eb-8d8a-b40dfa0db84e.png)     [![attach](https://user-images.githubusercontent.com/24578855/101988566-6da28480-3cd5-11eb-9532-69d88b2f598d.png)](https://user-images.githubusercontent.com/24578855/101988566-6da28480-3cd5-11eb-9532-69d88b2f598d.png)   [![config](https://user-images.githubusercontent.com/24578855/101988567-6e3b1b00-3cd5-11eb-8799-66e8ebec6020.png)](https://user-images.githubusercontent.com/24578855/101988567-6e3b1b00-3cd5-11eb-8799-66e8ebec6020.png)     [![menus](https://user-images.githubusercontent.com/24578855/101988573-71cea200-3cd5-11eb-8e8b-e80ab319b216.png)](https://user-images.githubusercontent.com/24578855/101988573-71cea200-3cd5-11eb-8e8b-e80ab319b216.png)   [![rule2](https://user-images.githubusercontent.com/24578855/102609155-f9992e00-4165-11eb-93ad-82275af134ab.png)](https://user-images.githubusercontent.com/24578855/102609155-f9992e00-4165-11eb-93ad-82275af134ab.png)  更多截图 [Larke Admin 后台截图](https://github.com/deatil/larke-admin/issues/1)

### 安装步骤

[](#安装步骤)

1. 首先安装 `laravel` 框架，并确认连接数据库的配置没有问题，开始执行以下命令

```
composer require lake/larke-admin
```

2. 运行下面的命令安装完成系统

```
php artisan larke-admin:install
```

安装完成系统后

你需要复制 `config/larkeadmin.php.larke` 重命名为 `config/larkeadmin.php`，

复制 `config/larkeauth.php.larke` 重命名为 `config/larkeauth.php`，

复制 `larkeauth-rbac-model.conf.larke` 重命名为 `larkeauth-rbac-model.conf`

3. 如果需要重新获取配置文件，可以运行下面的命令，推送配置文件

```
php artisan vendor:publish --tag=larke-admin-config
```

如果文件已存在，请根据情况复制内容到对应配置文件

4. 你可能第一次安装需要运行以下命令导入路由权限规则

```
php artisan larke-admin:import-route
```

5. 后台登录账号及密码：`admin` / `123456`

### 扩展推荐

[](#扩展推荐)

名称描述[系统通用配置](https://github.com/deatil/larke-configs)自定义数据配置，将配置信息统一到一个表[操作日志](https://github.com/deatil/larke-operation-log)记录 admin 系统的相关操作日志[签名证书](https://github.com/deatil/larke-admin-signcert)生成 RSA, EdDSA, ECDSA 等非对称签名证书[日志查看器](https://github.com/deatil/larke-admin-logviewer)laravel 日志查看扩展[demo](https://github.com/deatil/larke-admin-demo)扩展示例注：扩展目录默认为 `/extension` 目录

### 库推荐

[](#库推荐)

名称描述[JWT国密SM2驱动](https://github.com/deatil/larke-jwt-sm2)larke-admin 后台管理系统 JWT 的 SM2 驱动### 特别鸣谢

[](#特别鸣谢)

感谢以下的项目,排名不分先后

- laravel/framework
- casbin/casbin
- composer/semver
- phpseclib/phpseclib
- PclZip

### 开源协议

[](#开源协议)

- `larke-admin` 遵循 `Apache2` 开源协议发布，在保留本系统版权的情况下提供个人及商业免费使用。

### 版权

[](#版权)

- 该系统所属版权归 deatil() 所有。

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance55

Moderate activity, may be stable

Popularity44

Moderate usage in the ecosystem

Community22

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

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

Recently: every ~61 days

Total

70

Last Release

412d ago

Major Versions

v1.9.9 → 2.0.02024-07-19

PHP version history (4 changes)1.1.11PHP ^7.3|^8.0

1.3.0-betaPHP ^8.0

1.6.3PHP ^8.1

1.8.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d9102ba7087cc40ae6c6bedcc0c84cd8cb12870a983d0bc147785833d009e3c?d=identicon)[deatil](/maintainers/deatil)

---

Top Contributors

[![deatil](https://avatars.githubusercontent.com/u/24578855?v=4)](https://github.com/deatil "deatil (212 commits)")

---

Tags

adminadmin-apiadmin-dashboardcasbinjwtlaravellaravel-adminlaravel11larkelarke-adminphpphp8rabaclaraveladminlakelarkelarke-admin

### Embed Badge

![Health badge](/badges/lake-larke-admin/health.svg)

```
[![Health](https://phpackages.com/badges/lake-larke-admin/health.svg)](https://phpackages.com/packages/lake-larke-admin)
```

###  Alternatives

[orchid/platform

Platform for back-office applications, admin panel or CMS your Laravel app.

4.8k2.5M59](/packages/orchid-platform)[tuandm/laravue

A beautiful dashboard for Laravel built by VueJS

2.2k16.6k](/packages/tuandm-laravue)[smarch/watchtower

Front-end for the Shinboi Auth system of Users / Roles / Permissions in Laravel 5

523.0k](/packages/smarch-watchtower)

PHPackages © 2026

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