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

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

latrell/smarty
==============

This package lets you run Smarty3 on Laravel5 elegantly.

1.2(11y ago)127.0k13[3 issues](https://github.com/Latrell/Smarty/issues)[1 PRs](https://github.com/Latrell/Smarty/pulls)MITPHPPHP &gt;=5.3.0

Since Apr 25Pushed 9y ago2 watchersCompare

[ Source](https://github.com/Latrell/Smarty)[ Packagist](https://packagist.org/packages/latrell/smarty)[ RSS](/packages/latrell-smarty/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

Smarty
======

[](#smarty)

This package lets you run Smarty3 on Laravel5 elegantly.

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

[](#installation)

```
composer require latrell/smarty dev-master

```

Update your packages with `composer update` or install with `composer install`.

Usage
-----

[](#usage)

To use the Smarty Service Provider, you must register the provider when bootstrapping your Laravel application. There are essentially two ways to do this.

Find the `providers` key in `config/app.php` and register the Smarty Service Provider.

```
    'providers' => [
        // ...
        'Latrell\Smarty\SmartyServiceProvider',
    ]
```

Then publish the config file with `php artisan vendor:publish`. This will add the file `config/latrell-smarty.php`. This config file is the primary way you interact with Smarty.

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('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

33

—

LowBetter than 75% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

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

Every ~85 days

Total

3

Last Release

4232d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b9c19d0caf9fc48461484ad75722397c85c31e901e77122aab1a966e5c4987dd?d=identicon)[Latrell](/maintainers/Latrell)

---

Top Contributors

[![latrell](https://avatars.githubusercontent.com/u/6267962?v=4)](https://github.com/latrell "latrell (13 commits)")[![kryten87](https://avatars.githubusercontent.com/u/2042984?v=4)](https://github.com/kryten87 "kryten87 (3 commits)")

---

Tags

laraveltemplatingviewsmartyLaravel 4L4Smarty 3

### Embed Badge

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

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

###  Alternatives

[ytake/laravel-smarty

Smarty template engine for Laravel and Lumen

87401.6k](/packages/ytake-laravel-smarty)[delatbabel/viewpages

Support rendering/view of Laravel pages and templates from a database.

121.4k](/packages/delatbabel-viewpages)

PHPackages © 2026

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