guguanghai/smarty
Larablocks Analysis
guguanghai/smarty works with Laravel 4 (latest release 1.2, Oct 13, 2014), which reached end of life: no more fixes, even for security.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- Supports only Laravel 4, past end of life
- No release in the last 12 months (last: Oct 13, 2014)
- 0 downloads a month (needs 10,000)
- 0 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Oct 13, 2014.
- 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 guguanghai/smarty |
|
| Latest Version: | 1.2 |
| PHP: | >=5.3.0 |
| Laravel: | 4 |
| License: | MIT |
| Last Updated: | Apr 21, 2016 |
| Links: | GitHub · Packagist |
Smarty
This package lets you run Smarty3 on Laravel5 elegantly.
Installation
composer require latrell/smarty dev-master
Update your packages with composer update or install with composer install.
Usage
To use the Smarty Service Provider, you must register the provider when bootstrapping your Laravel application. There are essentially two ways to do this.
Find the providers key in config/app.php and register the Smarty Service Provider.
'providers' => [
// ...
'Latrell\Smarty\SmartyServiceProvider',
]
Then publish the config file with php artisan vendor:publish. This will add the file config/latrell-smarty.php. This config file is the primary way you interact with Smarty.
Then simply reference templates using the normal dot syntax of Laravel.
For example to load smarty template views/blog/post.tpl, you would use view('blog.post').
In Smarty {include} or {extends} tags, you should continue to use the full directory syntax, e.g. {extends file="blog/post.tpl"}.
Alternatives to guguanghai/smarty
The standalone version Blade Template Engine from Laravel in a single php file
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 1.2 | >=5.3.0 | 4.2.* | MIT | |
| 1.1 | >=5.3.0 | 4.2.* | MIT | |
| 1.0 | >=5.3.0 | 4.1.* | MIT |