php: add modify function for applications