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

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

guguanghai/smarty
=================

This package lets you run Smarty3 on Laravel5 elegantly.

1.2(11y ago)017MITPHPPHP &gt;=5.3.0

Since Apr 25Pushed 10y ago1 watchersCompare

[ Source](https://github.com/guguanghai/Smarty)[ Packagist](https://packagist.org/packages/guguanghai/smarty)[ RSS](/packages/guguanghai-smarty/feed)WikiDiscussions master Synced 1w 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

26

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

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

4320d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4ea16c94d13e5943105ead5d08c4bc493a52d9ccce39f3833812ba6dbf40bbfb?d=identicon)[guguanghai](/maintainers/guguanghai)

---

Top Contributors

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

---

Tags

laraveltemplatingviewsmartyLaravel 4L4Smarty 3

### Embed Badge

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

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

###  Alternatives

[latrell/smarty

This package lets you run Smarty3 on Laravel5 elegantly.

127.1k](/packages/latrell-smarty)[moonshine/moonshine

Laravel administration panel

1.3k268.2k88](/packages/moonshine-moonshine)[ytake/laravel-smarty

Smarty template engine for Laravel and Lumen

87410.8k](/packages/ytake-laravel-smarty)[hasinhayder/tyro-dashboard

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

5495.1k](/packages/hasinhayder-tyro-dashboard)[ublabs/blade-simple-icons

A package to easily make use of Simple Icons in your Laravel Blade views.

1866.3k](/packages/ublabs-blade-simple-icons)[technikermathe/blade-lucide-icons

A package to easily make use of Lucide icons in your Laravel Blade views.

18473.9k13](/packages/technikermathe-blade-lucide-icons)

PHPackages © 2026

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