The problem:
I have a legacy php app that is coded in no particular style (some OO, function libraries, some templates, no templates), which I am slowly rewriting, cleaning up, and adding to.
When I introduced templates to the system, it was immediately evident that that would really clean up and simplify the code a lot because of the separation between html and php that it gives. I've worked with a php MVC framework at my job, and I really like the separation of concerns that embodies the concept of the MVC. However, I don't like the complexity that a large codebases would introduce. I love simplicity and can't deal well with endlessly nested debugging when a really complex stack comes into play. As time goes on, I have become more and more of a fan of functional style, mainly due to investigations into Clojure.
I would like to have a good way to separate out concerns in php, optimally without much object oriented code, and without much of a stack, because I want to move to a more functional style for php as I move to php 5.3 and beyond.
Framing the solution:
- No large/complicated objects.
- A short stack for debugging.
- Running php 5.2, won't be able to upgrade to 5.3 until whenever it comes out in debian, so functional style would be nice, but the tools of 5.3 might not be available to me for a while.
- A clean & simple theme to unify a currently fractured codebase.
- The less impact on the current code, the better.