PHPackages                             fangx/dn-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. [Templating &amp; Views](/categories/templating)
4. /
5. fangx/dn-template

ActiveLibrary[Templating &amp; Views](/categories/templating)

fangx/dn-template
=================

v1.0.0(5y ago)04MITJavaScriptPHP ^7.2.0

Since Nov 25Pushed 5y agoCompare

[ Source](https://github.com/fangx-packages/dn-template)[ Packagist](https://packagist.org/packages/fangx/dn-template)[ RSS](/packages/fangx-dn-template/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

Fangx's Packages
----------------

[](#fangxs-packages)

一个好用的后台模板(Layuimini), 基于 Layui 开发.

- **Thanks**
    - [Layuimini](https://github.com/zhongshaofa/layuimini)
    - [Layui](https://github.com/sentsin/layui)

### Install

[](#install)

Via Composer

```
composer require fangx/dn-template

```

### Usage

[](#usage)

> 所有页面默认都发布在 `public/dn-template/page` 里面, 根据自己的需要进行修改和调整

#### Hyperf

[](#hyperf)

> **注意**:
>
> 1. 需要安装 `hyperf/view-engine` 并正常配置相关内容, [详见文档](https://hyperf.wiki/2.0/#/zh-cn/view-engine)
> 2. 需要配置静态资源的相关设置, [详见文档](https://hyperf.wiki/2.0/#/zh-cn/view?id=%e9%85%8d%e7%bd%ae%e9%9d%99%e6%80%81%e8%b5%84%e6%ba%90)

- 发布静态资源

```
php ./bin/hyperf.php vendor:publish fangx/dn-template
```

- 配置路由

```
Router::addRoute(['GET', 'POST', 'HEAD'], '/dn-template/index', [\Fangx\DnTemplate\DnTemplateController::class, 'index']);
```

- 启动服务 `php ./bin/hyperf.php start`, 访问 `http://127.0.0.1:9501/dn-template/index` 即可看到页面

#### Laravel

[](#laravel)

- 发布静态资源

```
php artisan vendor:publish --tag=dn-template
```

- 配置路由 `routes/web.php`

```
Route::any('/dn-template/index', [\Fangx\DnTemplate\DnTemplateController::class, 'index']);
```

- 启动服务 `php artisan serve`, 访问 `http://127.0.0.1:8000/dn-template/index` 即可看到页面

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

1998d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/48e745eaab94e5e8f347aadc5b74046bb174895188f0507b1d46c0fa6cee6555?d=identicon)[nfangxu](/maintainers/nfangxu)

---

Top Contributors

[![nfangxu](https://avatars.githubusercontent.com/u/33243730?v=4)](https://github.com/nfangxu "nfangxu (3 commits)")

---

Tags

phphyperf

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/fangx-dn-template/health.svg)

```
[![Health](https://phpackages.com/badges/fangx-dn-template/health.svg)](https://phpackages.com/packages/fangx-dn-template)
```

###  Alternatives

[endroid/qr-code-bundle

Endroid QR Code Bundle

32110.6M17](/packages/endroid-qr-code-bundle)

PHPackages © 2026

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