Added php code and edited the readme