[Solved] Perform DELETE request to Github API in PHP


You can use cURL with its CURLOPT_CUSTOMREQUEST to perform a DELETE request. The result would look a bit like the following (untested!) code:

$curl = curl_init($apiUrl . '/user/following/:username');
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "DELETE");
$result = curl_exec($curl);

solved Perform DELETE request to Github API in PHP