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

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

gkralik/zf3-smarty-module
=========================

Laminas / ZF3 module providing a Smarty rendering strategy

2.4.0(4y ago)25.3kApache-2.0PHPPHP ^7.1 || ^8.0 || ^8.1

Since Aug 14Pushed 4y ago1 watchersCompare

[ Source](https://github.com/gkralik/zf3-smarty-module)[ Packagist](https://packagist.org/packages/gkralik/zf3-smarty-module)[ Docs](https://www.github.com/gkralik/zf3-smarty-module)[ RSS](/packages/gkralik-zf3-smarty-module/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (5)Dependencies (6)Versions (11)Used By (0)

zf3-smarty-module
=================

[](#zf3-smarty-module)

This is a module for integrating the [Smarty](http://www.smarty.net) template engine with [Laminas](https://getlaminas.org/) or [Zend Framework 3](http://framework.zend.com).

Version 2.x supports [Laminas](https://getlaminas.org/).

Version 1.x supports [Zend Framework 3](http://framework.zend.com). See branch [1.x](https://github.com/gkralik/zf3-smarty-module/tree/1.x)

Installation with Composer
--------------------------

[](#installation-with-composer)

Installing via [Composer](http://getcomposer.org) is the only supported method.

```
composer require gkralik/zf3-smarty-module:2.0.0
```

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

[](#configuration)

For information on supported options refer to the [module config file](https://github.com/gkralik/zf3-smarty-module/tree/master/config/module.config.php).

There is also a [sample configuration file](https://github.com/gkralik/zf3-smarty-module/tree/master/config/zf3-smarty-module.config.php.dist) with all available configuration options.

You can set options for the Smarty engine under the `smarty_options` configuration key (eg `force_compile`, etc).

Pay attention to the `compile_dir` and `cache_dir` keys. Smarty needs write access to the directories specified there.

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

[](#documentation)

### Using Zend Framework view helpers

[](#using-zend-framework-view-helpers)

Using view helpers of ZF3 is supported. Just call the view helper as you would do in a PHTML template:

```
{$this->doctype()}

{$this->basePath('some/path')}
```

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity74

Established project with proven stability

 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

Every ~112 days

Recently: every ~132 days

Total

10

Last Release

1503d ago

Major Versions

1.x-dev → 2.0.02020-03-11

PHP version history (4 changes)1.0.0PHP ^7.1

2.2.0PHP ^7.1 || ~8.0.0

2.3.0PHP ^7.1 || ^8.1

2.3.1PHP ^7.1 || ^8.0 || ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4949303?v=4)[Gregor Kralik](/maintainers/gkralik)[@gkralik](https://github.com/gkralik)

---

Top Contributors

[![gkralik](https://avatars.githubusercontent.com/u/4949303?v=4)](https://github.com/gkralik "gkralik (33 commits)")

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[modx/revolution

MODX Revolution is a Content Management System

1.4k9.4k12](/packages/modx-revolution)[kokspflanze/bjy-authorize

Laminas\\Acl based firewall system for Mezzio dispatch protection

20194.8k4](/packages/kokspflanze-bjy-authorize)[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.

18112.4k](/packages/oxcom-zend-twig)

PHPackages © 2026

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