Code Monkey home page Code Monkey logo

stack-zf2's Introduction

== 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. After that you should search for bridges to make it compatible with your framework if it isn't already.

== Original Content Below ==

Stack/ZF2

This project runs a ZF2 project within the Symfony Http Foundation wich is even more fun when Stack comes into the picture.

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?

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

  • 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

  • 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

Contribute

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

stack-zf2's People

Contributors

reenl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.