PHPackages                             ethan-chen-li/think-template-swoft - 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. ethan-chen-li/think-template-swoft

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

ethan-chen-li/think-template-swoft
==================================

the php template engine for swoft 2.x

v0.3(6y ago)4166Apache-2.0PHPPHP &gt;=7.1.0

Since Nov 1Pushed 6y agoCompare

[ Source](https://github.com/EthanChenLi/think-template-swoft)[ Packagist](https://packagist.org/packages/ethan-chen-li/think-template-swoft)[ RSS](/packages/ethan-chen-li-think-template-swoft/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

ThinkTemplate for swoft
=======================

[](#thinktemplate-for-swoft)

基于XML和标签库的编译型模板引擎

#### 基于Thinkphp官方修改

[](#基于thinkphp官方修改)

该版本为开发版本，不保证功能长期支持。

### 安装方法

[](#安装方法)

```
composer require ethan-chen-li/think-template-swoft

```

### 使用方法：

[](#使用方法)

```
	$dir = __DIR__."/../../";
	$config = [
		// 模板文件目录
		'view_path'   => $dir.'/resource/views/',
		// 模板编译缓存目录（可写）
		'cache_path'  => $dir.'/runtime/template/',
		// 模板文件后缀
		'view_suffix' => 'html',
	];
	$template = new Template($config);
	$data=[];
	return $template->fetch("list",$data);
```

请勿使用assign方法或其他方法，不保证功能正常。 模板标签完美支持。

详细用法参考[开发手册](https://www.kancloud.cn/manual/think-template/content)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

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

Total

3

Last Release

2384d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6337626?v=4)[EthanChenLi](/maintainers/EthanChenLi)[@EthanChenLi](https://github.com/EthanChenLi)

---

Top Contributors

[![EthanChenLi](https://avatars.githubusercontent.com/u/6337626?v=4)](https://github.com/EthanChenLi "EthanChenLi (6 commits)")

### Embed Badge

![Health badge](/badges/ethan-chen-li-think-template-swoft/health.svg)

```
[![Health](https://phpackages.com/badges/ethan-chen-li-think-template-swoft/health.svg)](https://phpackages.com/packages/ethan-chen-li-think-template-swoft)
```

###  Alternatives

[moonshine/moonshine

Laravel administration panel

1.3k217.1k59](/packages/moonshine-moonshine)[topthink/think-template

the php template engine

55831.8k37](/packages/topthink-think-template)[nhzex/think-blade

Use Laravel Blade templates without the full Laravel framework

132.7k](/packages/nhzex-think-blade)

PHPackages © 2026

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