Learning to make framework to php