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

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

x-bird/smarty
=============

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

1.4(8y ago)34952MITPHPPHP &gt;=5.3.0

Since Apr 25Pushed 8y ago1 watchersCompare

[ Source](https://github.com/X-Bird/Smarty)[ Packagist](https://packagist.org/packages/x-bird/smarty)[ RSS](/packages/x-bird-smarty/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (7)Used By (0)

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

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

安装
--

[](#安装)

```
composer require x-bird/smarty

```

配置
--

[](#配置)

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

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

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

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 61.5% 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 ~284 days

Total

5

Last Release

3269d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b08947b10bedb12bd88f132a1d2cfe67be4941f7d5500ccb3e6f546fa0c817a?d=identicon)[x-bird](/maintainers/x-bird)

---

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)")

---

Tags

laraveltemplatingviewfissmartyfis smarty

### Embed Badge

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

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