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

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

aaron/smarty-view
=================

Smarty view engine incl. View Composer support for Laravel 4

041PHP

Since Jun 9Pushed 12y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Smarty for Laravel 4.1
======================

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

Somewhat hacky implementation of Smarty for Laravel 4.1.

Unlike Twig and other template engines for Laravel (other than raw PHP and Blade), this supports [View Composers](http://laravel.com/docs/responses#view-composers).

Undefined variables (and other E\_NOTICE errors) are also silently allowed, as a matter of personal preference and because it's generally the Smarty way of doing things.

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.

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

[](#installation)

You can install this through composer with:

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

```

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

If you're using Laravel 4.0 still, swap "dev-master" for "dev-laravel-4.0"

Usage
-----

[](#usage)

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

```
'Dark\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

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3851.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.1k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

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

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

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

282.2k](/packages/webkinder-sproutset)

PHPackages © 2026

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