PHPackages                             roferwoo/tp5-smarty - 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. roferwoo/tp5-smarty

ActiveProject

roferwoo/tp5-smarty
===================

ThinkPHP5 Smarty Template Driver Support Template Theme

0.0.5(8y ago)018MITPHPPHP &gt;=5.4.0

Since Sep 2Pushed 8y ago1 watchersCompare

[ Source](https://github.com/roferwoo/tp5-smarty)[ Packagist](https://packagist.org/packages/roferwoo/tp5-smarty)[ Docs](https://github.com/roferwoo/tp5-smarty)[ RSS](/packages/roferwoo-tp5-smarty/feed)WikiDiscussions master Synced today

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

[![Latest Stable Version](https://camo.githubusercontent.com/988aa590f809839f392bb8388d4f8d09021c75f795418931d7c45567732bcd13/68747470733a2f2f706f7365722e707567782e6f72672f726f666572776f6f2f7470352d736d617274792f762f737461626c65)](https://packagist.org/packages/roferwoo/tp5-smarty)[![Total Downloads](https://camo.githubusercontent.com/3fc838a4349e8af8bbf7433f8ac148b2e122438acd0a95fdc5c2031c424e3996/68747470733a2f2f706f7365722e707567782e6f72672f726f666572776f6f2f7470352d736d617274792f646f776e6c6f616473)](https://packagist.org/packages/roferwoo/tp5-smarty)[![Latest Unstable Version](https://camo.githubusercontent.com/bae7c30dac6abe51d07beaa86bf459c50cfcb119d6aa4c486dd39c49e4e06f20/68747470733a2f2f706f7365722e707567782e6f72672f726f666572776f6f2f7470352d736d617274792f762f756e737461626c65)](https://packagist.org/packages/roferwoo/tp5-smarty)[![License](https://camo.githubusercontent.com/66bf689a31f52e7e5dcf649aaddd4547397678f6e2e1a013490735f49a62c8f7/68747470733a2f2f706f7365722e707567782e6f72672f726f666572776f6f2f7470352d736d617274792f6c6963656e7365)](https://packagist.org/packages/roferwoo/tp5-smarty)

tp5-smarty
==========

[](#tp5-smarty)

ThinkPHP5 Smarty 引擎驱动，支持模板主题与模板布局配置。

安装方法
----

[](#安装方法)

使用composer安装模版引擎方法：

```
composer require roferwoo/tp5-smarty

```

配置参数
----

[](#配置参数)

在ThinkPHP5的基础上，可添加配置以下参数：

```
// 模板主题目录
'view_theme'   => 'default',
// 模板布局
'page_layout' => [
    'header' => 'path/to/header.html', // 或 'no_header' => 1,
    'footer' => 'path/to/footer.html', // 或 'no_footer' => 1,
],

```

###  Health Score

23

—

LowBetter than 30% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Total

5

Last Release

3120d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d7152ea4cad020d3b6a9a8900060a3ae1c526e41908e1155d3b4b99845a6c7b8?d=identicon)[roferwoo](/maintainers/roferwoo)

---

Top Contributors

[![roferwoo](https://avatars.githubusercontent.com/u/7404149?v=4)](https://github.com/roferwoo "roferwoo (11 commits)")

---

Tags

themesmartythinkphp5tp5

### Embed Badge

![Health badge](/badges/roferwoo-tp5-smarty/health.svg)

```
[![Health](https://phpackages.com/badges/roferwoo-tp5-smarty/health.svg)](https://phpackages.com/packages/roferwoo-tp5-smarty)
```

###  Alternatives

[ytake/laravel-smarty

Smarty template engine for Laravel and Lumen

85398.5k](/packages/ytake-laravel-smarty)[yiisoft/yii2-smarty

The Smarty integration for the Yii framework

80368.3k14](/packages/yiisoft-yii2-smarty)[noiselabs/smarty-bundle

This Symfony bundle provides integration for the Smarty3 template engine.

54193.8k1](/packages/noiselabs-smarty-bundle)[mathmarques/smarty-view

Slim Framework 4 view helper built on top of the Smarty templating component

26134.0k1](/packages/mathmarques-smarty-view)

PHPackages © 2026

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