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

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

murganikolay/smarty-module
==========================

Smarty template engine module for Zend Framework 2

1.2.0(13y ago)3147.2k↓78.3%25[7 issues](https://github.com/NikolayMurha/SmartyModule/issues)MITPHPPHP &gt;=5.3.3

Since Dec 28Pushed 5y ago7 watchersCompare

[ Source](https://github.com/NikolayMurha/SmartyModule)[ Packagist](https://packagist.org/packages/murganikolay/smarty-module)[ Docs](https://github.com/MurgaNikolay/SmartyModule)[ RSS](/packages/murganikolay-smarty-module/feed)WikiDiscussions dev Synced 3w ago

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

Welcome to the SmartyModule for Zend Framework 2!
=================================================

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

SmartyModule is a module that integrates the Smarty templating engine with Zend Framework 2.

Version: 1.0.0

Istallation
-----------

[](#istallation)

### Composer

[](#composer)

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

### Manual

[](#manual)

1. `git clone https://github.com/MurgaNikolay/SmartyModule.git` in to `vendor` dir
2. Put Smarty in to `vendor` dir
3. Setup autoloader for load Smarty.
4. 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',
    ),
    'template_path_stack' => array(
        __DIR__ . '/../view',
    ),
),
...

```

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

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 93.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 ~83 days

Total

3

Last Release

4758d ago

### Community

Maintainers

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

---

Top Contributors

[![NikolayMurha](https://avatars.githubusercontent.com/u/1524144?v=4)](https://github.com/NikolayMurha "NikolayMurha (44 commits)")[![polianych](https://avatars.githubusercontent.com/u/3264544?v=4)](https://github.com/polianych "polianych (2 commits)")[![pkaso](https://avatars.githubusercontent.com/u/954977?v=4)](https://github.com/pkaso "pkaso (1 commits)")

---

Tags

zendviewmodulezf2smarty

### Embed Badge

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

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

###  Alternatives

[ytake/laravel-smarty

Smarty template engine for Laravel and Lumen

85406.6k](/packages/ytake-laravel-smarty)[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)
