php rest application for idenfitication management