Coder Social home page Coder Social logo

Explanation of installation choices about mezzio HOT 4 OPEN

mezzio avatar mezzio commented on July 19, 2024
Explanation of installation choices

from mezzio.

Comments (4)

weierophinney avatar weierophinney commented on July 19, 2024

When I first looked at zend expressive I was impressed but confused, It looked nice, but I didn't know what happened with mvc nor the difference between these two choices,

https://docs.zendframework.com/zend-expressive/why-expressive/#should-you-choose-zend-expressive-over-zend-mvc

and I also looked at all the choices I had when it came to view, routing etc. And did not know what to pick or what the difference was.

I'm not sure how you want to do this. Those are different packages with different solution for the same problem. I don't think it's our task to list all the differences, that also means you need to maintain that comparison. If there are new features added we would need to update the docs.
I guess for the internals you need to do a little investigation yourself. I suggest you read the docs of those packages anyway so you know how to use each package before you start. e.g. you might like the plates coding style over twig, and they both have an extension system to add missing features.

A Routing choices page where the differences are listed,

For routing the main difference is the configuration and the way the regex is used. They do work different internally but besides the different config you won't notice it. I know FastRoute is a favorite for many users and it's the default choice because it's fast, especially when its caching system is used.

as well as a template choices page in the getting started section.

Plates and zend-view use the php language directly where twig use its own parser which translates to php code (it's extra overhead, but with its caching system it's still fast). Twig automatically escapes output for you, plates is really fast and zend-view has a lot of extra features.

I guess we could add a short introduction, something like I wrote above. But I think anything more is in the package docs.


Originally posted by @geerteltink at zendframework/zend-expressive#512 (comment)

from mezzio.

weierophinney avatar weierophinney commented on July 19, 2024

Sorry for not knowing excactly how this works here. Should I put my question I put on #283 rather here?


Originally posted by @frankx at zendframework/zend-expressive#512 (comment)

from mezzio.

weierophinney avatar weierophinney commented on July 19, 2024

@frankx Try our forum and slack for questions.


Originally posted by @geerteltink at zendframework/zend-expressive#512 (comment)

from mezzio.

weierophinney avatar weierophinney commented on July 19, 2024

@xtreamwayz Thank you for your response

Maybe the differences in the templates could be written as parts, and reused in both the overview of templates and in each template. Same goes for routers. The main features is only needed I think, performance is definitely a huge factor in chosing (thank you for the routing explanation.


Originally posted by @AndersMadsen at zendframework/zend-expressive#512 (comment)

from mezzio.

Related Issues (20)

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.