Modernizing Legacy Applications in PHP