This tool turns a Curl command into PHP code. Currently, it knows the following options: -d/--data/--data-binary, -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.