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

ActiveLibrary

lascyb/think-view
=================

thinkphp template driver

v2.3.0(5y ago)024Apache-2.0PHPPHP &gt;=7.1.0

Since Jan 20Pushed 5y agoCompare

[ Source](https://github.com/lascyb/think-view)[ Packagist](https://packagist.org/packages/lascyb/think-view)[ RSS](/packages/lascyb-think-view/feed)WikiDiscussions lascyb Synced 4d ago

READMEChangelogDependencies (1)Versions (26)Used By (0)

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

[](#think-view)

- 基于 think-view 二次开发
- 本扩展不能单独使用，依赖ThinkPHP6.0+
- 具体的模板引擎配置请参考lascyb/think-template库。

安装
--

[](#安装)

```
composer require lascyb/think-view

```

> > > ---
>
> 相关用法基本与think/think-view 相同
>
> > > ---

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

[](#think-view-1)

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

用法示例
----

[](#用法示例)

本扩展不能单独使用，依赖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

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 72% 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 ~36 days

Recently: every ~42 days

Total

24

Last Release

1827d ago

Major Versions

v1.0.14 → v2.02020-11-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d62570d47b840f8c9af1e2a6536f8b1bf190479fa99e3a4608ac7af6b469e8f?d=identicon)[lascyb](/maintainers/lascyb)

---

Top Contributors

[![liu21st](https://avatars.githubusercontent.com/u/1111670?v=4)](https://github.com/liu21st "liu21st (36 commits)")[![lascyb](https://avatars.githubusercontent.com/u/37490770?v=4)](https://github.com/lascyb "lascyb (12 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/lascyb-think-view/health.svg)

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

PHPackages © 2026

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