add generation php code