It has happened again. Another company has contacted me because they had a PHP product developed which has turned into a huge beast of complexity. Basic functionality has stopped working and nobody wants to have anything to do with it. It has serious consequences for the company because they are loosing money since the product isn't up and running. I have come to the same conclusion which I have reached in other similar situations, the codebase is one big pile of complex object-oriented mess.