x-bird/smarty
改自latrell/smarty,增加配置项,让其支持fis smarty插件的配置项.
495
3
Larablocks Analysis
x-bird/smarty works with Laravel 5 (latest release 1.4, Jun 3, 2017), which reached end of life: no more fixes, even for security.
Laravel 4 in earlier releases.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 5, past end of life
- No release in the last 12 months (last: Jun 3, 2017)
- 0 downloads a month (needs 10,000)
- 3 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Jun 3, 2017.
- No releases in the last 12 months.
- First released: Apr 25, 2014.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 3, 2026.
| Install | |
|---|---|
composer require x-bird/smarty |
|
| Latest Version: | 1.4 |
| PHP: | >=5.3.0 |
| Laravel: | 5 |
| Older releases: | 4 |
| License: | MIT |
| Last Updated: | Jun 22, 2017 |
| Links: | GitHub · Packagist |
Maintainer: x-bird
Laravel 5.4 + 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
Related Packages
eftec/bladeone
The standalone version Blade Template Engine from Laravel in a single php file
12,330,588
832
eftec/bladeonehtml
The standalone version Blade Template Engine from Laravel in a single php file
37,039
10
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 1.4 | >=5.3.0 | 5.4.* | MIT | |
| 1.3 | >=5.3.0 | 5.4.* | MIT | |
| 1.2 | >=5.3.0 | 4.2.* | MIT | |
| 1.1 | >=5.3.0 | 4.2.* | MIT | |
| 1.0 | >=5.3.0 | 4.1.* | MIT |