PHPackages                             thinkcmf/think-view - 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. thinkcmf/think-view

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

thinkcmf/think-view
===================

thinkphp template driver

v1.0.15(5y ago)02.3kApache-2.0PHPPHP &gt;=7.1.0

Since Jan 20Pushed 5y agoCompare

[ Source](https://github.com/thinkcmf/think-view)[ Packagist](https://packagist.org/packages/thinkcmf/think-view)[ RSS](/packages/thinkcmf-think-view/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (17)Used By (0)

think-view
==========

[](#think-view)

ThinkPHP6.0 Think-Template模板引擎驱动

安装
--

[](#安装)

```
composer require topthink/think-view
```

用法示例
----

[](#用法示例)

本扩展不能单独使用，依赖ThinkPHP6.0+

首先配置config目录下的template.php配置文件，然后可以按照下面的用法使用。

```
use think\facade\View;

// 模板变量赋值和渲染输出
View::assign(['name' => 'think'])
	// 输出过滤
	->filter(function($content){
		return str_replace('search', 'replace', $content);
	})
	// 读取模板文件渲染输出
	->fetch('index');

// 或者使用助手函数
view('index', ['name' => 'think']);
```

具体的模板引擎配置请参考think-template库。

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% 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 ~47 days

Recently: every ~119 days

Total

16

Last Release

1965d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8df601675fe6d48d5ddf9fcff6d96284c58ae7190e2747e003b5c5125c508d98?d=identicon)[thinkcmf](/maintainers/thinkcmf)

---

Top Contributors

[![liu21st](https://avatars.githubusercontent.com/u/1111670?v=4)](https://github.com/liu21st "liu21st (36 commits)")[![thinkcmf](https://avatars.githubusercontent.com/u/6211558?v=4)](https://github.com/thinkcmf "thinkcmf (4 commits)")[![big-dream](https://avatars.githubusercontent.com/u/9215157?v=4)](https://github.com/big-dream "big-dream (1 commits)")[![yunwuxin](https://avatars.githubusercontent.com/u/2168125?v=4)](https://github.com/yunwuxin "yunwuxin (1 commits)")

### Embed Badge

![Health badge](/badges/thinkcmf-think-view/health.svg)

```
[![Health](https://phpackages.com/badges/thinkcmf-think-view/health.svg)](https://phpackages.com/packages/thinkcmf-think-view)
```

###  Alternatives

[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)[symfony/ux-icons

Renders local and remote SVG icons in your Twig templates.

555.8M69](/packages/symfony-ux-icons)

PHPackages © 2026

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