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

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

koflazycat/smarty
=================

This package lets you run Smarty3 on Laravel5 elegantly.

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

Since Apr 25Pushed 10y ago1 watchersCompare

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

4279d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4435461?v=4)[SEAN](/maintainers/KOFLazycat)[@KOFLazycat](https://github.com/KOFLazycat)

---

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)")[![KOFLazycat](https://avatars.githubusercontent.com/u/4435461?v=4)](https://github.com/KOFLazycat "KOFLazycat (2 commits)")

---

Tags

laraveltemplatingviewsmartyLaravel 4L4Smarty 3

### Embed Badge

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

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

###  Alternatives

[latrell/smarty

This package lets you run Smarty3 on Laravel5 elegantly.

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

Laravel administration panel

1.3k239.9k76](/packages/moonshine-moonshine)[ytake/laravel-smarty

Smarty template engine for Laravel and Lumen

87408.6k](/packages/ytake-laravel-smarty)[technikermathe/blade-lucide-icons

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

18421.4k9](/packages/technikermathe-blade-lucide-icons)[guilhermegonzaga/presenter

Implementation for Laravel of the presenter design pattern.

47252.8k](/packages/guilhermegonzaga-presenter)[ublabs/blade-simple-icons

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

1958.8k](/packages/ublabs-blade-simple-icons)

PHPackages © 2026

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