update app and add php generator