php rest server for socrates