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

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

addons/smarty
=============

This package lets you run Smarty4 on Laravel elegantly.

1.0.5(4y ago)01911MITPHPPHP &gt;=7.4.0

Since Nov 2Pushed 4y ago1 watchersCompare

[ Source](https://github.com/fly-studio/laravel-addons-smarty)[ Packagist](https://packagist.org/packages/addons/smarty)[ Docs](https://www.load-page.com/)[ RSS](/packages/addons-smarty/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (7)Used By (1)

Smarty
======

[](#smarty)

This package lets you run Smarty3 on Laravel5 elegantly.

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

[](#installation)

```
composer require addons/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' => [
        // ...
        'Addons\Smarty\View\SmartyServiceProvider',
    ]
```

Then publish the config file with `php artisan vendor:publish`. This will add the file `config/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

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity67

Established project with proven stability

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 ~387 days

Total

6

Last Release

1589d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.4.0

1.0.5PHP &gt;=7.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/89c095b36d638a84a03b11eb5b322ec2c7a89805e12425a380f58f46629ce80a?d=identicon)[addons](/maintainers/addons)

---

Tags

laraveltemplatingviewsmartySmarty 4

### Embed Badge

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

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

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M125](/packages/roots-acorn)[propaganistas/laravel-disposable-email

Disposable email validator

6023.0M7](/packages/propaganistas-laravel-disposable-email)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M129](/packages/laravel-pulse)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M341](/packages/psalm-plugin-laravel)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

44755.7k](/packages/harris21-laravel-fuse)[ytake/laravel-smarty

Smarty template engine for Laravel and Lumen

87408.6k](/packages/ytake-laravel-smarty)

PHPackages © 2026

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