Developer Tool
CURL to Code — convert cURL commands to PHP or fetch.
Paste a cURL command and instantly get the equivalent PHP (cURL or file_get_contents) or JavaScript fetch() code. Great for converting API docs to real code.
CURL to PHP / Fetch Converter