Tuesday, 1 October 2013

Which PHP framework to start giving structure to existing spaghetti code?

Which PHP framework to start giving structure to existing spaghetti code?

I have inherited a huge codebase of globally included files and code, raw
database queries all over the place, the odd partially logical class, all
with a mixture of 2 different templating systems as well as very complex
raw html echo's
I'm thinking the best place to start would be building up the model
classes and abstracting away all the inline SQL. Would be good to get some
property validation which I can pass across to or generate html forms but
other than that it won't be feasible to restructure the front end at least
in the short/medium term.
I don't have a lot of experience with any particular framework but they
all seem to bootstrap everything through index.php or require major
restructure of the existing front end which really wouldn't be possible
here. The existing html/php files will need to stay standalone, with
includes to provide access to the framework and models.

No comments:

Post a Comment