PHPackages                             aaron4m/zf2-static-pages - 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. [Framework](/categories/framework)
4. /
5. aaron4m/zf2-static-pages

AbandonedArchivedLibrary[Framework](/categories/framework)

aaron4m/zf2-static-pages
========================

The purpose of this module is to create a simple, zero configuration static pages module for Zend Framework 2

124162[2 issues](https://github.com/aaron4m/zf2-static-pages/issues)PHP

Since Jun 20Pushed 13y agoCompare

[ Source](https://github.com/aaron4m/zf2-static-pages)[ Packagist](https://packagist.org/packages/aaron4m/zf2-static-pages)[ RSS](/packages/aaron4m-zf2-static-pages/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Aaron4m - Static Pages
======================

[](#aaron4m---static-pages)

The purpose of this module is to create a simple, zero configuration static pages module for Zend Framework 2

*NOTE: See New Development Version below for details on the new release*

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

[](#installation)

Added the following requirement to your projects composer.json file.

```
"aaron4m/zf2-static-pages": "dev-master"
```

and run

php ./composer.phar update and finally add StaticPages to the START of your modules list in config/application.php. It's important this comes first as it may override routes setup later.

Usage
-----

[](#usage)

Simply drop a .phtml file into your module/application/view/static-pages folder (or any other module for that matter).

This page can now be viewed from either

/pages/yourfile/ (with or without trailing backslash) or simply /yourfile/ (with or without trailing backslash)

\##New Development Version Here's the concept:

Rather than just relying on the fallback (which isn't compatible with ACL), I'm testing for the presence of the template then injecting it into the router stack on the bootstrap event. This means that each and every page dynamically has an actual literal route.

I'm still overloading the notFoundAction, however the only way it can possible hit this is if there's a template which has caused the router to send it to that page. Hence, this just returns the view.

I'm still not able to get around this as the ZF2 route listener uses method\_exists to check for the presence of the action, which doesn't take any notice of a \_\_call method. Hence, if the action doesn't exist, it will always use the notFoundAction.

I'd love it if you guys could download it and have a play as it's a fairly major change. I'm also keen to work out a way to unit test this. Since it's impossible to check for an action, we should be able to test the route as this is now working. Thoughts?

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

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/335268e9ef408185a955d86c198669761984e623d7b72c37b757b4ed5a9cd526?d=identicon)[aaron4m](/maintainers/aaron4m)

### Embed Badge

![Health badge](/badges/aaron4m-zf2-static-pages/health.svg)

```
[![Health](https://phpackages.com/badges/aaron4m-zf2-static-pages/health.svg)](https://phpackages.com/packages/aaron4m-zf2-static-pages)
```

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k104.3M836](/packages/laravel-socialite)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k38.6M289](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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