My team have to maintain a large php application that was very poorly written. It is a mix of html, javascript and SQL on top of a large poorly designed database (ex. it has a table with few hundreds of columns). The only advantage of the codebase is that it works.
We are constantly bug fixing and rewriting parts of it.
I would like to give a structure to the rewrites we do, so I've though about integrating an mvc framework in to the codebase. Could you suggest any good framework for environment?
Here is a list of things that the I would expect from such framework:
- The API must be very stable. We can't afford to rewrite the code on each release.
- Custom session management or at least working on standard $_SESSION[] (To be able to talk with old code).
- Custom authentication.
- Using the raw SQL should be well supported (The database is hard to represent in terms of objects).
- It shouldn't assume that I will have a table per controller.