Translate command CURL to PHP CURL? Cloudflare API
You will need to do a post but also send a custom request. Curl will then do a post style put
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT"); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
Then add the headers if needed
curl_setopt($ch, CURLOPT_HTTPHEADER, [array of your headers]);
Change the array to be a key value array where the key is the header name and value is the header value