PHPackages                             zucchi/layout - 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. zucchi/layout

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

zucchi/layout
=============

Layout managemnet and injection for Zucchi Modules for ZF2

1501[1 issues](https://github.com/zucchi/ZucchiLayout/issues)PHP

Since Jun 16Pushed 12y ago1 watchersCompare

[ Source](https://github.com/zucchi/ZucchiLayout)[ Packagist](https://packagist.org/packages/zucchi/layout)[ RSS](/packages/zucchi-layout/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

ZucchiLayout
============

[](#zucchilayout)

Module to allow management and injection of site layouts and schedule layout changes

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

[](#installation)

From the root of your ZF2 Skeleton Application run

```
./composer.phar require zucchi/layout

```

This module will require your vhost to use an AliasMatch

```
AliasMatch /_layout/([^/]+)/(.+)\.png /path/to/project/data/zucchi/layout/$1/$2.png
AliasMatch /_layout/([^/]+)/([^/]+)/(.+) /path/to/project/data/zucchi/layout/$1/assets/$2/$3

```

This will result in you being able to generate urls such as "/\_layout/zucchi-simple/css/style.css"

You will also need to copy the ./config/zucchilayout.local.php.dist to your autoload folder and configure to suit.

Admin
-----

[](#admin)

The module depends on the ZucchiAdmin Module to allow you to manage the layouts.

This will allow you to install new layouts and schedule when they will display from

NB: The scheduling is very simplistic at the moment and will always display the most recent scheduled layout.

Layouts
-------

[](#layouts)

Layouts can be uploaded using as ZIP or TAR files. The file MUST contain the following in its root

- layout.phtml - The phtml template to use
- layout.json - A valid Json file containing MetaData about the layout. The file must contain keys for *"name"* and *"vendor"*
- layout.png - A 560 x 400 pixel image of the layout

If the layout has its own static assets these must be stored in a folder called assets and can be accessed using the AliasMatch defined above

A VERY simplistic sample layout can be found at ./sample/zucchi-layout.tar.gz

Roadmap
-------

[](#roadmap)

- Improve validation for scheduling for conflict management
- Add Dependency Management for Layouts

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/08fa7f499733c5518af69da8396025243cc2091ac38b5f7d146b04fe4b55fc4a?d=identicon)[mattcockayne](/maintainers/mattcockayne)

---

Top Contributors

[![phpboyscout](https://avatars.githubusercontent.com/u/175238?v=4)](https://github.com/phpboyscout "phpboyscout (21 commits)")[![r-nicol](https://avatars.githubusercontent.com/u/2539311?v=4)](https://github.com/r-nicol "r-nicol (1 commits)")

### Embed Badge

![Health badge](/badges/zucchi-layout/health.svg)

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

###  Alternatives

[fojuth/readmegen

Readme file / doc generator. It uses VCS logs as a source of information.

6230.7k](/packages/fojuth-readmegen)[fintara/calculator-php

Calculator for arithmetic expressions

1331.2k](/packages/fintara-calculator-php)

PHPackages © 2026

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