Curl To PHP

Instantly convert curl commands to PHP code

This tool turns a Curl command into PHP code. Currently, it knows the following options: -d/--data/--data-binary, -F/--form, -H/--header, -I/--head, -u/--user, compressed, --url and -X/--request. There's probably bugs; please contribute on GitHub!

This script derives from Matt Holt's excellent curl-to-Go.

Example 1 · Example 2 · Example 3 · Example 4 · Example 5

If you find this tool useful, please consider supporting us by making a donation.