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

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

monstergfx/smarty-view
======================

Smarty view engine incl. View Composer support for Laravel 4. A fork of Dark/SmartyView

035PHP

Since Oct 31Pushed 12y ago1 watchersCompare

[ Source](https://github.com/MonsterGfx/Laravel4-SmartyView)[ Packagist](https://packagist.org/packages/monstergfx/smarty-view)[ RSS](/packages/monstergfx-smarty-view/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Smarty for Laravel 4
====================

[](#smarty-for-laravel-4)

Very hacky implementation of Smarty for Laravel 4.

Unlike Twig and basically anything besides raw PHP and Blade, this mostly supports View Composers (at least when the events are used to define variables and when smarty {extends} or {include} tags are used).

Undefined variables (and other E\_NOTICE errors) are also silently allowed, as a matter of personal preference.

Smarty itself has been included because file edits were required for View Composer support. It should not be upgraded without these being merged, unless you don't care about View Composers.

Please note that this is a fork of the [Dark\\SmartyView package](https://github.com/darkimmortal/Laravel4-SmartyView). The only change (as of Oct 30, 2013) is the inclusion of the most recent version of Smarty (3.1.14).

Installation
------------

[](#installation)

You can install this through composer with:

```
"monstergfx/smarty-view": "dev-master"

```

in composer.json -&gt; "require".

Usage
-----

[](#usage)

To use, add to config/app.php -&gt; providers:

```
'MonsterGfx\SmartyView\SmartyViewServiceProvider',

```

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::make('blog.post')`. In Smarty {include} or {extends} tags, you should continue to use the full directory syntax, e.g. `{extends file="blog/post.tpl"}`.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 52.9% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5022928?v=4)[MonsterGfx](/maintainers/MonsterGfx)[@MonsterGfx](https://github.com/MonsterGfx)

---

Top Contributors

[![lukefor](https://avatars.githubusercontent.com/u/283772?v=4)](https://github.com/lukefor "lukefor (9 commits)")[![kryten87](https://avatars.githubusercontent.com/u/2042984?v=4)](https://github.com/kryten87 "kryten87 (8 commits)")

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/monstergfx-smarty-view/health.svg)](https://phpackages.com/packages/monstergfx-smarty-view)
```

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3861.2M](/packages/limenius-react-bundle)[area17/laravel-auto-head-tags

Laravel Auto Head Tags helps you build the list of head elements for your app

4616.0k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.2k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

281.8k](/packages/webkinder-sproutset)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
