PHPackages                             taogov/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. [Templating &amp; Views](/categories/templating)
4. /
5. taogov/smarty

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

taogov/smarty
=============

改自latrell/smarty，增加配置项，让其支持fis smarty插件的配置项.

v1.0(8y ago)06MITPHPPHP &gt;=7.1.0

Since Feb 1Pushed 8y ago1 watchersCompare

[ Source](https://github.com/taogov/smarty)[ Packagist](https://packagist.org/packages/taogov/smarty)[ RSS](/packages/taogov-smarty/feed)WikiDiscussions master Synced 3d ago

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

Laravel 5.5 + Fis3 静态资源管理系统
===========================

[](#laravel-55--fis3-静态资源管理系统)

安装
--

[](#安装)

```
composer require taogov/smarty

```

配置
--

[](#配置)

- 在 `config/app.php` 文件中配置：

```
    'providers' => array(
        // ...
        taogov\Smarty\SmartyServiceProvider::class,
    )
```

- 执行发布配置文件：`php artisan vendor:publish --provider="taogov\Smarty\SmartyServiceProvider" --tag=config --tag=plugins`

使用
--

[](#使用)

- 加入providers：
- 假设有模板文件`views/blog/post.tpl`，那controller中是这样渲染的，`View::make('blog.post')`
- 关于 `{include}` 或 `{extends}` 标签的参数传递, 需要使用全路径的写法, 例如： `{extends file="blog/post.tpl"}`

配置项解释
-----

[](#配置项解释)

- 模板放置路径：`template_path`
- 模板缓存路径：`cache_path`
- 模板编译路径：`compile_path`
- fis3 产出的namespace-map.json 放置路径：`configs_paths`

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

3024d ago

### Community

Maintainers

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

---

Top Contributors

[![latrell](https://avatars.githubusercontent.com/u/6267962?v=4)](https://github.com/latrell "latrell (8 commits)")[![marlonfan](https://avatars.githubusercontent.com/u/9349370?v=4)](https://github.com/marlonfan "marlonfan (5 commits)")[![wwt142](https://avatars.githubusercontent.com/u/12391040?v=4)](https://github.com/wwt142 "wwt142 (5 commits)")

---

Tags

laraveltemplatingviewfissmartyfis smarty

### Embed Badge

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

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

###  Alternatives

[ytake/laravel-smarty

Smarty template engine for Laravel and Lumen

87401.6k](/packages/ytake-laravel-smarty)[latrell/smarty

This package lets you run Smarty3 on Laravel5 elegantly.

127.0k](/packages/latrell-smarty)[delatbabel/viewpages

Support rendering/view of Laravel pages and templates from a database.

121.4k](/packages/delatbabel-viewpages)

PHPackages © 2026

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