composer restful curl wrapper