[ 'method' => 'GET', 'header' => 'User-Agent: BlueprintFramework', ], ]); $response = file_get_contents($api_url, false, $context); if ($response) { $cleaned_response = preg_replace('/[[:^print:]]/', '', $response); $data = json_decode($cleaned_response, true); if (isset($data['tag_name'])) { $latest_version = $data['tag_name']; echo "$latest_version"; } else { echo "Error: Unable to fetch the latest release version."; } } else { echo "Error: Failed to make the API request."; } } }