PHPackages                             xdd/x-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. xdd/x-template

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

xdd/x-template
==============

后台模板组件

v1.0.0(7y ago)811MITJavaScript

Since May 28Pushed 7y ago2 watchersCompare

[ Source](https://github.com/xiangdong1987/xTemplate)[ Packagist](https://packagist.org/packages/xdd/x-template)[ RSS](/packages/xdd-x-template/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (3)Used By (0)

xTemplate
=========

[](#xtemplate)

思路
--

[](#思路)

1. 拆分组件化
2. 利用装饰器实现组件拼接
3. 自动装饰器拼接，简化使用过程

安装
--

[](#安装)

- composer 安装

```
composer require xdd/x-template

```

> 如果国外镜像慢可以在composer.json中加入如下配置

```
  "repositories": {
    "packagist": {
      "type": "composer",
      "url": "https://packagist.phpcomposer.com"
    }
  },

```

- nginx 配置静态资源

```
    location /node_modules/ {
           root /usr/local/var/www/xTemplate/;
    }

```

Done List
---------

[](#done-list)

- Input 80%
- Select 80%
- Menu 70%
- Radio 80%
- Checkbox 80%
- Form 80%
- Divider 100%
- Cascader 20%
- Time Select 50%
- Time Picker 50%
- Date Picker 70%
- 增加配置解析

Todo
----

[](#todo)

- 功能完善
- bug修复

预览
--

[](#预览)

[![图片预览](https://github.com/xiangdong1987/xTemplate/raw/master/img/xTemplate1.png)](https://github.com/xiangdong1987/xTemplate/raw/master/img/xTemplate1.png)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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

2591d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5974016?v=4)[xiang dongdong](/maintainers/xiangdong1987)[@xiangdong1987](https://github.com/xiangdong1987)

---

Top Contributors

[![xiangdong1987](https://avatars.githubusercontent.com/u/5974016?v=4)](https://github.com/xiangdong1987 "xiangdong1987 (31 commits)")

### Embed Badge

![Health badge](/badges/xdd-x-template/health.svg)

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

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3861.2M](/packages/limenius-react-bundle)[area17/laravel-auto-head-tags

Laravel Auto Head Tags helps you build the list of head elements for your app

4616.0k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.2k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

281.8k](/packages/webkinder-sproutset)

PHPackages © 2026

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