PHPackages                             double-c/laravel-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. double-c/laravel-smarty

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

double-c/laravel-smarty
=======================

laravel + smarty from cc

1.0.6(8y ago)03111MITPHPPHP &gt;=7.0

Since Mar 8Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Double-C/laravel-smarty)[ Packagist](https://packagist.org/packages/double-c/laravel-smarty)[ RSS](/packages/double-c-laravel-smarty/feed)WikiDiscussions master Synced 2mo ago

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

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

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

安装
--

[](#安装)

```
composer require double-c/laravel-smarty

```

配置
--

[](#配置)

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

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

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

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

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

Total

7

Last Release

2986d ago

PHP version history (2 changes)1.0.0PHP 7.0

1.0.2PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/7c1ffc8d254fb90316493a534a98b6321e9fe7c1e1c816be13fa865e278fd521?d=identicon)[Double-c](/maintainers/Double-c)

---

Top Contributors

[![Double-C](https://avatars.githubusercontent.com/u/18607836?v=4)](https://github.com/Double-C "Double-C (9 commits)")

---

Tags

laravelviewfissmartyfis smarty

### Embed Badge

![Health badge](/badges/double-c-laravel-smarty/health.svg)

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

137.0k](/packages/latrell-smarty)[torann/device-view

Provides support for device based view layouts in Laravel.

146.6k](/packages/torann-device-view)[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)
