PHPackages                             c0dei/laminas-smarty-module - 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. c0dei/laminas-smarty-module

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

c0dei/laminas-smarty-module
===========================

Smarty5 integration for Lamins MVC

v1.0.0(yesterday)01↑2900%MITPHPPHP ^7.2 || ^8.0

Since Jun 8Pushed yesterdayCompare

[ Source](https://github.com/c0dei/laminas-smarty-module)[ Packagist](https://packagist.org/packages/c0dei/laminas-smarty-module)[ RSS](/packages/c0dei-laminas-smarty-module/feed)WikiDiscussions main Synced yesterday

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

Laminas Smarty 5 Module
=======================

[](#laminas-smarty-5-module)

This module provides Smarty 5 integration for Laminas MVC applications.

Requirements
------------

[](#requirements)

- PHP 7.2 or higher (up to PHP 8.x)
- Laminas MVC
- Smarty 5

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

[](#installation)

You can install this module using Composer:

```
composer require c0dei/laminas-smarty-module
```

*(Note: Until published on Packagist, you can use composer's `path` or `vcs` repository features).*

Configuration
-------------

[](#configuration)

Add the module to your `config/modules.config.php`:

```
return [
    // ... other modules
    'C0dei\LaminasSmartyModule',
];
```

By default, the module expects template files to end with `.tpl`. You can override Smarty settings in your application's `config/autoload/global.php` or `module.config.php`:

```
return [
    'smarty' => [
        'suffix' => 'tpl',
        'compile_dir' => 'data/Smarty/compile',
        'cache_dir' => 'data/Smarty/cache',
        'caching' => 0,
        'escape_html' => false,
    ],
];
```

Usage
-----

[](#usage)

In your controllers, simply return a ViewModel as usual, and specify a `.tpl` template:

```
use Laminas\View\Model\ViewModel;

public function indexAction()
{
    $view = new ViewModel(['name' => 'World']);
    $view->setTemplate('application/index/index.tpl');
    return $view;
}
```

If you configure your `template_map` or `template_path_stack` properly to resolve `.tpl` files, the Smarty strategy will automatically pick them up and render them using the Smarty 5 engine.

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance100

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

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

1d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6381049?v=4)[Kodai Yamazaki](/maintainers/c0dei)[@c0dei](https://github.com/c0dei)

---

Top Contributors

[![c0dei](https://avatars.githubusercontent.com/u/6381049?v=4)](https://github.com/c0dei "c0dei (2 commits)")

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/c0dei-laminas-smarty-module/health.svg)

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

###  Alternatives

[modx/revolution

MODX Revolution is a Content Management System

1.4k9.4k12](/packages/modx-revolution)[ytake/laravel-smarty

Smarty template engine for Laravel and Lumen

85406.6k](/packages/ytake-laravel-smarty)[kokspflanze/zfc-twig

Laminas/Zend Framework Module that provides a Twig rendering strategy and extensions to render actions or trigger events from your templates

14305.3k4](/packages/kokspflanze-zfc-twig)[oxcom/zend-twig

ZendTwig is a module that integrates the Twig template engine with Zend Framework 3.

19112.4k](/packages/oxcom-zend-twig)[kokspflanze/bjy-authorize

Laminas\\Acl based firewall system for Mezzio dispatch protection

20194.8k4](/packages/kokspflanze-bjy-authorize)

PHPackages © 2026

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