loosely coupled php framework