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

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

maglnet/smarty-module
=====================

Smarty template engine module for Laminas 3

2.4.0(2y ago)034.9k↓38.1%2MITPHPPHP ~8.1.0 || ~8.2.0 || ~8.3.0

Since Dec 28Pushed 2y ago1 watchersCompare

[ Source](https://github.com/maglnet/SmartyModule)[ Packagist](https://packagist.org/packages/maglnet/smarty-module)[ Docs](https://github.com/maglnet/SmartyModule)[ RSS](/packages/maglnet-smarty-module/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (10)Versions (12)Used By (0)

Welcome to the SmartyModule for Laminas Framework!
==================================================

[](#welcome-to-the-smartymodule-for-laminas-framework)

SmartyModule is a module that integrates the Smarty templating engine with Laminas.

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

[](#installation)

### Composer

[](#composer)

1. Add `"maglnet/smarty-module": "^2.0"` to your `composer.json` file and run `composer update`.
2. Add `SmartyModule` to your `config/application.config.php` file under the modules key.

### Configuration

[](#configuration)

Change you Application config like this:

```
...
'view_manager' => array(
    'default_suffix' => 'tpl', //  true,
    'display_exceptions'       => true,
    'doctype'                  => 'HTML5',
    'not_found_template'       => 'error/404',
    'exception_template'       => 'error/index',
    'template_map' => array(
        'layout/layout'           => __DIR__ . '/../view/layout/layout.tpl',
        'application/index/index' => __DIR__ . '/../view/application/index/index.tpl',
        'error/404'               => __DIR__ . '/../view/error/404.tpl',
        'error/index'             => __DIR__ . '/../view/error/index.tpl',
    ),
    'smarty' => array(
        'error_reporting'=> E_PARSE,
        'compile_dir' => 'path/to/compile/dir',
        'cache_dir' => 'path/to/cache/dir',
        //Other Smarty options
    ),
    'template_path_stack' => array(
        __DIR__ . '/../view',
    ),
    'plugin_path_stack' => array(
        __DIR__ . '/../smarty-plugins',
    ),
),
...

```

Aditional info about view manager: [Laminas\\View](http://framework.zend.com/manual/2.0/en/modules/zend.view.quick-start.html "Laminas\View").

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity85

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 52.1% 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 ~444 days

Recently: every ~786 days

Total

10

Last Release

884d ago

Major Versions

1.2.0 → 2.0.02015-05-02

PHP version history (4 changes)1.1.0PHP &gt;=5.3.3

2.2.0PHP ^7.0 || ^8.0

2.3.0PHP ^7.4 || ^8.0

2.4.0PHP ~8.1.0 || ~8.2.0 || ~8.3.0

### Community

Maintainers

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

---

Top Contributors

[![NikolayMurha](https://avatars.githubusercontent.com/u/1524144?v=4)](https://github.com/NikolayMurha "NikolayMurha (49 commits)")[![maglnet](https://avatars.githubusercontent.com/u/4430279?v=4)](https://github.com/maglnet "maglnet (26 commits)")[![nusphere](https://avatars.githubusercontent.com/u/5822825?v=4)](https://github.com/nusphere "nusphere (14 commits)")[![polianych](https://avatars.githubusercontent.com/u/3264544?v=4)](https://github.com/polianych "polianych (2 commits)")[![countless-integers](https://avatars.githubusercontent.com/u/2060726?v=4)](https://github.com/countless-integers "countless-integers (1 commits)")[![oburk](https://avatars.githubusercontent.com/u/17986373?v=4)](https://github.com/oburk "oburk (1 commits)")[![pkaso](https://avatars.githubusercontent.com/u/954977?v=4)](https://github.com/pkaso "pkaso (1 commits)")

---

Tags

laminasviewmodulesmarty

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laminas/laminas-view

Fast and type safe HTML templating library with a flexible plugin system supporting multistep template composition

7526.3M230](/packages/laminas-laminas-view)[ytake/laravel-smarty

Smarty template engine for Laravel and Lumen

87401.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

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

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

19109.7k](/packages/oxcom-zend-twig)[latrell/smarty

This package lets you run Smarty3 on Laravel5 elegantly.

127.0k](/packages/latrell-smarty)

PHPackages © 2026

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