PHPackages                             reenl/stack-zf2 - 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. reenl/stack-zf2

AbandonedLibrary

reenl/stack-zf2
===============

Run Zend Framework on a Symfony HTTP kernel

1216PHP

Since Jul 1Pushed 8y ago1 watchersCompare

[ Source](https://github.com/reenl/stack-zf2)[ Packagist](https://packagist.org/packages/reenl/stack-zf2)[ RSS](/packages/reenl-stack-zf2/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

== THIS REPOSITORY IS OUTDATED ==
=================================

[](#-this-repository-is-outdated-)

This repository was created way back when PSR-7 wasn't a thing. I would advise you to use PSR-7 as intermediate request format. Most stack middleware is already available for PSR-7.

The most common PSR-7 implementation can be found [here](https://packagist.org/packages/zendframework/zend-diactoros). After that you should search for bridges to make it compatible with your framework if it isn't already.

== Original Content Below ==
============================

[](#-original-content-below-)

Stack/ZF2
=========

[](#stackzf2)

This project runs a [ZF2](https://github.com/zendframework/zf2) project within the [Symfony Http Foundation](https://github.com/symfony/HttpFoundation) wich is even more fun when [Stack](http://stackphp.com/) comes into the picture.

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

[](#installation)

Install Zend Framework using composer and simply add the require: `"reenl/stack-zf2": "dev-master"`. Then run `composer update`.

Please take a look at \[QUICKSTART.md\] (QUICKSTART.md) for a more detailed description.

Why stack/zf2?
--------------

[](#why-stackzf2)

Because it can be done. I wanted to investigate how flexible ZF2 is versus SF. It helped me understand the inner workings of Zend Framework.

However it can be useful in several other cases:

- Gracefully migrate from Zend Framework to Symfony or the other way around.
- Ability to use (hopefully all) the stack middlewares.
- Find bugs in ZF2.

Todo
----

[](#todo)

- Find out how to handle chdir, probably a setter on our kernel. (Please twitter me if you know the dependencies for chdir.)
- Test cases.
- Test compatibility other stack components.
- Find out what to do with Request::getBasePath. Hardcoded usage in some helper.
- Conversion from Symfony to Zend Request is via toString.
- Try to make ZF throw exceptions instead of an error page when $catch is false.

Known issues
------------

[](#known-issues)

- Application must be bootstrapped before calling `::handle`.
- The request object can not be used during bootstrap, because the request that is going to be handled is not known when bootstrapping.
- `$_ENV` and `$_FILES` are not (yet) supported.

Support
-------

[](#support)

- Open a ticket
- twitter:

Contribute
----------

[](#contribute)

- Optional: create an issue to notify me what you are doing
- Fork
- Improve
- PR

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9050357e697e6c9e60cfb979e03cb1aac7ca63c2c6c9e10881013f045ae87f7d?d=identicon)[reenl](/maintainers/reenl)

---

Top Contributors

[![reenl](https://avatars.githubusercontent.com/u/951945?v=4)](https://github.com/reenl "reenl (6 commits)")

### Embed Badge

![Health badge](/badges/reenl-stack-zf2/health.svg)

```
[![Health](https://phpackages.com/badges/reenl-stack-zf2/health.svg)](https://phpackages.com/packages/reenl-stack-zf2)
```

PHPackages © 2026

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