Simple HMAC resource server in PHP