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

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

srit83/smarty-view
==================

Smarty view engine incl. View Composer support for Laravel 4

0.1(12y ago)016PHPPHP &gt;=5.3.0

Since Jun 9Pushed 12y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (5)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

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

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

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4523d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1829928?v=4)[Stefan Riedel](/maintainers/srit83)[@srit83](https://github.com/srit83)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[moonshine/moonshine

Laravel administration panel

1.3k239.9k76](/packages/moonshine-moonshine)[illuminate/view

The Illuminate View package.

13046.3M2.1k](/packages/illuminate-view)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

721160.4k12](/packages/tallstackui-tallstackui)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45344.0k1](/packages/pressbooks-pressbooks)[hasinhayder/tyro-dashboard

Tyro Dashboard - Beautiful admin dashboard for managing Tyro roles, privileges, users, and settings

5452.7k](/packages/hasinhayder-tyro-dashboard)

PHPackages © 2026

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