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

ActiveLibrary

maxnuf/maxnuf-smarty
====================

Zend Framework 2 Module that provides a Smarty rendering strategy and functions and modifiers to render actions from your templates

v0.1(13y ago)36563[1 issues](https://github.com/maxnuf/MaxnufSmarty/issues)MITPHPPHP &gt;=5.3.3

Since Apr 13Pushed 12y ago3 watchersCompare

[ Source](https://github.com/maxnuf/MaxnufSmarty)[ Packagist](https://packagist.org/packages/maxnuf/maxnuf-smarty)[ Docs](http://www.github.com/Maxnuf/MaxnufSmarty/)[ RSS](/packages/maxnuf-maxnuf-smarty/feed)WikiDiscussions master Synced 2mo ago

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

MaxnufSmarty
============

[](#maxnufsmarty)

MaxnufSmarty is a module that integrates the [Smarty](http://www.smarty.net) templating engine with [Zend Framework 2](http://framework.zend.com).

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

[](#installation)

1. Add `"maxnuf/maxnuf-smarty": "dev-master"` to your `composer.json` file and run `php composer.phar update`.
2. Add `MaxnufSmarty` to your `config/application.config.php` file under the `modules` key.

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

[](#configuration)

configuration can be set via the `maxnufsmarty` configuration key.

```
'maxnufsmarty' => array(
    'config' => array(
        'compile_dir' => __DIR__ . '/../../data/Smarty/smarty_compile/',
        'cache_dir' => __DIR__ . '/../../data/Smarty/smarty_cache/',
    ),
),

```

MaxnufSmarty integrates with the View Manager service and uses the same resolvers defined within that service. For the `template_map` it looks for files with suffix defined in config, default is `.tpl`. This allows you to define the template path stacks and maps within the view manager without having to set them again when installing the module:

```
'view_manager' => array(
    'template_path_stack'   => array(
        'application'              => __DIR__ . '/../templates',
    ),
    'template_map' => array(
        'layouts/layout'    => __DIR__ . '/../templates/layouts/layout.tpl',
        'index/index'       => __DIR__ . '/../templates/application/index/index.tpl',
    ),
),

```

Documentation
-------------

[](#documentation)

### View Helpers

[](#view-helpers)

Support is added for Zend View helpers as functions and modifiers

Where appropriate Zend View helpers can be invoked as function or modifiers

```
{$form->get('title')|formLabel}
{$form->get('title')|formInput}
{url name="blog/view" params=['id'=>$item->id, 'title'=>$item->title]}

```

Zend View helpers can also be invoked using `$this`

```
{$this->formInput($form->get('title'))}

{$this->headTitle()->setSeperator(' - ')}

```

The smarty modifier `cat` can be used to concatenate two variables

```
{$this->headLink()->prependStylesheet($this->basePath()|cat:'/mystyle.css')}

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

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

4774d ago

### Community

Maintainers

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

---

Top Contributors

[![maxnuf](https://avatars.githubusercontent.com/u/1273539?v=4)](https://github.com/maxnuf "maxnuf (36 commits)")[![Siemienik](https://avatars.githubusercontent.com/u/2893099?v=4)](https://github.com/Siemienik "Siemienik (1 commits)")

---

Tags

modulezf2smarty

### Embed Badge

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

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

PHPackages © 2026

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