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 11y 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 today

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 19% 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

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[symfony/ux-icons

Renders local and remote SVG icons in your Twig templates.

545.8M69](/packages/symfony-ux-icons)

PHPackages © 2026

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