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

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

dark/smarty-view
================

Smarty view engine incl. View Composer support for Laravel 4

234.0k↓94.3%13[2 PRs](https://github.com/lukeforeman/Laravel4-SmartyView/pulls)PHP

Since Aug 20Pushed 12y ago5 watchersCompare

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

READMEChangelogDependenciesVersions (4)Used By (0)

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

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

Implementation of Smarty for Laravel 4.x.

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, swap "dev-master" for "dev-laravel-4.0"

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

If you're sticking with Laravel 4.2, swap "dev-master" for "dev-laravel-4.2"

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

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity45

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://www.gravatar.com/avatar/f2172d1b2528a9befc85d984237bb04c9579457f048f5242be0c08fa396e42b9?d=identicon)[darkimmortal](/maintainers/darkimmortal)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3841.2M](/packages/limenius-react-bundle)[pdewit/nova-external-url

An external URL Laravel Nova field.

30383.2k](/packages/pdewit-nova-external-url)[wbrowar/guide

A CMS Guide for Craft CMS.

6154.7k1](/packages/wbrowar-guide)[localgovdrupal/localgov_base

The base theme for LocalGov Drupal websites.

13126.9k5](/packages/localgovdrupal-localgov-base)

PHPackages © 2026

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