-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Created post Mezzio101 #250
base: staging
Are you sure you want to change the base?
Conversation
Signed-off-by: Florin Bidirean <bidi@dotkernel.com>
Created new PR for #239 |
@froschdesign can you approve this one ? |
Signed-off-by: Florin Bidirean <bidi@dotkernel.com>
|
||
The next command will launch the Mezzio Skeleton Installer. | ||
We will go through the installation process together, using the recommended settings. | ||
We will opt primarily for the Laminas-supported options to maintain consistency. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is meant by this? Using components of Laminas?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is meant by this? Using components of Laminas?
It means the default options in the installer: laminas-servicemanager instead of the rest of DI libraries, fastroute , and twig
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default option for template engine is n
(none) which raises the question of why Twig is chosen. (The tutorial does not explain this.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default option for template engine is
n
(none) which raises the question of why Twig is chosen. (The tutorial does not explain this.)
I am in doubt about that.
Indeed none
is the default option, but we should consider using Twig in this series of tutorials in order to provide some practical value for the developers.
Or we should have one article about all optional templates which can be used.
I really do not think that somebody use no template engine in a real life application. Eventually only if they need only CLI I/O
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I expanded the section for choosing the templating engine.
Signed-off-by: Florin Bidirean <bidi@dotkernel.com>
Signed-off-by: Florin Bidirean <bidi@dotkernel.com>
- `Twig` is reliable, actively-developed and well-known in the PHP community. | ||
- `laminas-view` is related to Laminas MVC. | ||
|
||
The default option for this step doesn't install any templating engine, but we only recommend this option if you want to build a CLI or API. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might use Laminas components for CLI applications, but Mezzio, not so much :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might use Laminas components for CLI applications, but Mezzio, not so much :)
Well, it's the idea that you do not need a template engine for CLI.
The article is about Mezzio :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean, why would you use the Mezzio skeleton to scaffold out a CLI app? The CLI bit needs removing so it's just:
The default option for this step doesn't install any templating engine which is only relevant if you are building an API.
|
||
- `Plates` is a simple templating engine that sees the templates themselves as PHP files. | ||
- `Twig` is reliable, actively-developed and well-known in the PHP community. | ||
- `laminas-view` is related to Laminas MVC. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand why you've chosen twig - but perhaps extrapolate on the reasons not to eat our own dog-food and use laminas-view. For example: "… laminas-view is a good choice if you're familiar with Laminas-MVC, but we've approached this article on the assumption that more people will have prior experience of Twig"
laminas-view works perfectly well with with Mezzio, even though it does have a long history of being coupled to the MVC framework.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand why you've chosen twig - but perhaps extrapolate on the reasons not to eat our own dog-food and use laminas-view. For example: "… laminas-view is a good choice if you're familiar with Laminas-MVC, but we've approached this article on the assumption that more people will have prior experience of Twig"
laminas-view works perfectly well with with Mezzio, even though it does have a long history of being coupled to the MVC framework.
we have in plan an article dedicated to all template engines options in mezzio.
Definitely i think it is a subjective choice between them
Created a new article for installing Mezzio Skeleton.
Description