a simple PHP API/cURL helper utility