OOP-style wrapper for php curl functions