Are there any advantages for using pure PHP instead of its frameworks?
I work on thesis and I need to find some pros of pure PHP. I tried to google but there is only praise the frameworks.
Are there any advantages for using pure PHP instead of its frameworks?
I work on thesis and I need to find some pros of pure PHP. I tried to google but there is only praise the frameworks.
I would say framework may be slower (by definition) than a raw PHP script.
First thing is routing and dispatch, and that will always be faster using the http server for routing than using PHP.
Performances will always be the largest problem with framework, but with a good cache and especially some opcache, there is not that much of a problem.
Frameworks allow to have a common layer to build the application on, and also bring a set of best practices and components. They help with the process of industrialisation mainly.
Don't forget to mention the PSR/PHP FIG in your work!