3 ms·
>Why go with PHP and have to roll your own framework, when you can go with something else, and leverage all the great work that has been done by the Django/Rail
by krapp 12y ago
>Why go with PHP and have to roll your own framework, when you can go with something else, and leverage all the great work that has been done by the Django/Rails/whatever folks?
To be fair, no one has to roll their own framework in PHP, it has frameworks aplenty. I don't know why anyone would do that.
- alexbilbie 12y agoI wrote an API at work which was originally written in Laravel because it was fast to prototype in. I've since replaced it with my own "framework" which is mostly a very thin wrapper for several really good packages (router, DI container, events dispatcher and query builder wrapper). I'm getting 10x performance out of it than I was with Laravel, and overall it's a very small codebase which is easy to understand and test. So yes, no one "has to roll their own framework in PHP", but there sure are advantages to do so if you know exactly what you need and how to get there.
- krapp 12y agoFair enough. If it's lightweight then it makes sense.
- Shorel 12y agoDo you have a public github repository with that ?
- alexbilbie 12y agoThe wrapper can be found here https://github.com/alexbilbie/proton https://github.com/alexbilbie/proton
- fredsted 12y agoIt seems to me that a microframework like Silex or Slim would be appropriate as well