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

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

xfeng/smarty
============

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

1.2.1(8y ago)0430MITPHPPHP &gt;=7.0.0

Since Feb 13Pushed 8y ago1 watchersCompare

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

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

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

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

安装
--

[](#安装)

```
composer require xfeng/smarty

```

配置
--

[](#配置)

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

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

- 执行发布配置文件：`php artisan vendor:publish --provider="xfeng\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

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Total

4

Last Release

2991d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e764ab0c3852c39448359c182d8761ded686b637fc1fb891c9f75b849ae24a0?d=identicon)[xufu\_4571](/maintainers/xufu_4571)

---

Top Contributors

[![sunny628](https://avatars.githubusercontent.com/u/16478878?v=4)](https://github.com/sunny628 "sunny628 (5 commits)")

---

Tags

laraveltemplatingviewfissmartyfis smarty

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/xfeng-smarty/health.svg)](https://phpackages.com/packages/xfeng-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)
