PHPackages                             cranux/lumen-api-dev-template - 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. [Framework](/categories/framework)
4. /
5. cranux/lumen-api-dev-template

ActiveProject[Framework](/categories/framework)

cranux/lumen-api-dev-template
=============================

快速开发API项目

0.1.8(4y ago)16[1 PRs](https://github.com/cranux/LumenApiDevTemplate/pulls)MITPHPPHP ^7.3|^8.0

Since Nov 29Pushed 3y ago1 watchersCompare

[ Source](https://github.com/cranux/LumenApiDevTemplate)[ Packagist](https://packagist.org/packages/cranux/lumen-api-dev-template)[ RSS](/packages/cranux-lumen-api-dev-template/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (9)Versions (8)Used By (0)

LumenApiDevTemplate
-------------------

[](#lumenapidevtemplate)

 **lumen8.x + JwtAuth + repository 快速开发API项目**

[](#----lumen8x--jwtauth--repository-快速开发api项目)

环境要求
----

[](#环境要求)

1. PHP &gt;= 7.3
2. **[Composer](https://getcomposer.org/)**
3. PHP openssl 扩展
4. PHP fileinfo 扩展
5. PDO PHP 拓展
6. Mbstring PHP 拓展
7. reids PHP 拓展

介绍
--

[](#介绍)

lumen Api 快速开发,采用JWTAUTH根据不同的guard隔离前后端用户表token;

同时使用repository仓库模式，更好的解耦，代码更易维护

项目使用默认phpredis效率更高 可以配置缓存和队列使用（必须安装php 的 redis扩展）

安装
--

[](#安装)

1.**执行命令**

```
composer install
```

2.**复制 `.env`**

```
cp .env.example .env
```

3.**编辑 `.env`,配置数据库等信息**

4.**生成数据库和填充数据**

```
php artisan migrate && php artisan db:seed
```

5.**配置jwt-auth**

```
php artisan jwt:secret
```

其他
--

[](#其他)

1.**jwt-auth使用相关说明**

文档地址 [tymon/jwt-auth](https://jwt-auth.readthedocs.io/en/develop/lumen-installation/)

2.**repository使用相关说明**

文档地址 [prettus/l5-repository](https://packagist.org/packages/prettus/l5-repository?)

License
-------

[](#license)

[MIT](https://github.com/cranux/LumenApiDevTemplate/blob/master/LICENSE)

#### 感谢项目中使用到的包

[](#感谢项目中使用到的包)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Total

5

Last Release

1666d ago

### Community

Maintainers

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

---

Top Contributors

[![cranux](https://avatars.githubusercontent.com/u/37317831?v=4)](https://github.com/cranux "cranux (13 commits)")

---

Tags

frameworklaravellumen

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cranux-lumen-api-dev-template/health.svg)

```
[![Health](https://phpackages.com/badges/cranux-lumen-api-dev-template/health.svg)](https://phpackages.com/packages/cranux-lumen-api-dev-template)
```

###  Alternatives

[lushdigital/microservice-core

A set of core functionality and convenience classes for a Lumen microservice.

105.5k](/packages/lushdigital-microservice-core)

PHPackages © 2026

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