As I'm sitting here at 4 am, I find myself wondering if frameworks are really needed anymore. Not just in php, but pretty much in any language. Why are we using these horrid, clunky, memory sucking machines to begin with?
I hadn't written a php application from scratch in awhile. But, I had been working in idiomatic Golang all weekend, and it really does help you see things a little differently.
So I had this new project to do. A simple CMS with some data crunching features for a specific task. While I was there, I wanted to play with some of php's new features. Along with things like dependency injection and phar compilation, which are always fun.
It really only took me a couple hours longer than usual on the setup side, and now I have basically the same structured web app I would have had if I had used a framework.
The big difference? Memory usage, with a running memory footprint of about 300k. In terms of resource usage, it's not even there. Zippy too.
So what do you think? When was the last time you wrote a standalone php app from scratch?
How'd it go?