Review and next steps

At this point, we have made a big step forward in modernizing our legacy application. We have begun converting from an include-oriented architecture to a class-oriented one. Even if we later discover a class or function that we missed, that's OK; we can follow the above process as many times as needed until all definitions have been moved to the central location.

We may still have lots of include statements in the application, but those that remain are related to the application flow, and not to pulling in class and function definitions. Any include calls that remain are executing logic. We can now see the flow of the application much better.

We have put in place a structure for new functionality. Any time we need to add a ...

Get Modernizing Legacy Applications in PHP now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.