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, -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