Server side request response library for php