PHPackages                             tasmaniski/zend-layout-change - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. tasmaniski/zend-layout-change

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tasmaniski/zend-layout-change
=============================

Listener to change layout for different module

1.0.0(9y ago)62.4k1PHPPHP &gt;=5.6

Since Dec 28Pushed 9y ago2 watchersCompare

[ Source](https://github.com/tasmaniski/zend-layout-change)[ Packagist](https://packagist.org/packages/tasmaniski/zend-layout-change)[ Docs](https://github.com/tasmaniski)[ RSS](/packages/tasmaniski-zend-layout-change/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Change layout per module
========================

[](#change-layout-per-module)

If you have modular app you probably want more that a single layout for eg. admin-layout and web-layout. Currently that is not supported by default in zend framework.

This package will enable you to set different layout for modules.

Install it
----------

[](#install-it)

Add in your **composer.json** file:

```
{
    "require": {
        "tasmaniski/zend-layout-change": "^1.0"
    }
}
```

After running: **sudo composer update** you need to register new module.

Add in file **config/application.config.php**:

```
'modules' => array(
    '...',
    'LayoutChange'
),

```

How to Use it
-------------

[](#how-to-use-it)

You have to create layout.phtml file per modul. For eg. if you have Admin and Web modules, you should create:

```
Web/view/layout/web-layout.phtml
Admin/view/layout/admin-layout.phtml

```

Than in yout config register layouts:

```
'module_layouts' => [
    'Web' => 'layout/web-layout',
    'Admin' => 'layout/admin-layout',
],

```

*Note: You can define each line in separate module's config: 'module\_layouts' =&gt; \['Module' =&gt; 'layout/layout-name'\]*

Wish you a very Happy New Year!

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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

3429d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/480ea974c3fa4d3b40d4d13e9206c2cd52f573ae55ffc696940b1b9e43c88ba1?d=identicon)[tasmaniski](/maintainers/tasmaniski)

---

Top Contributors

[![tasmaniski](https://avatars.githubusercontent.com/u/2909695?v=4)](https://github.com/tasmaniski "tasmaniski (18 commits)")

---

Tags

listenerlayoutZend Frameworkzf3

### Embed Badge

![Health badge](/badges/tasmaniski-zend-layout-change/health.svg)

```
[![Health](https://phpackages.com/badges/tasmaniski-zend-layout-change/health.svg)](https://phpackages.com/packages/tasmaniski-zend-layout-change)
```

###  Alternatives

[league/event

Event package

1.6k141.6M184](/packages/league-event)[desandro/masonry

Cascading grid layout library

16.7k424.4k1](/packages/desandro-masonry)[codenco-dev/nova-grid-system

A Laravel Nova tool to have a grid system

80300.1k](/packages/codenco-dev-nova-grid-system)[jbzoo/event

Library for event-based development

29760.0k5](/packages/jbzoo-event)[neilime/twbs-helper-module

Laminas (formerly Zend Framework) module for easy integration of Twitter Bootstrap

2198.7k](/packages/neilime-twbs-helper-module)[supervisorphp/event

Listen to Supervisor events in PHP

1442.4k](/packages/supervisorphp-event)

PHPackages © 2026

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