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(6y ago)811MITJavaScript

Since May 28Pushed 6y 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 3d 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 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

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

2544d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f2a3de41b7743745cef6a24d8757c795169a4b2e4c6acb203fd99464ddf26314?d=identicon)[xiangdong1987](/maintainers/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

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[nicmart/string-template

StringTemplate is a very simple string template engine for php. I've written it to have a thing like sprintf, but with named and nested substutions.

2101.7M30](/packages/nicmart-string-template)

PHPackages © 2026

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