Dogpatch, an HTTP API testing framework

We just released dogpatch an open source HTTP API testing framework, written in PHP using curl. Dogpatch supports ssl, basic auth, passing custom request headers, redirection (10 levels), and most HTTP request methods.

We orginally wrote dogpatch for testing the Commando.io API but quickly realized others found it super valuable and decided to open source it.

Below is a canonical example. Enjoy, and curl on!

$dogpatch = new Dogpatch();
$dogpatch->get("https://api.github.com")
     ->assertStatusCode(200)
     ->assertHeadersExist(array(
        "X-GitHub-Request-Id",
        "ETag"
     ))
     ->assertHeaders(array(
        "Server" => "GitHub.com"
     ))
     ->assertBody(IS_VALID_JSON)
     ->close();`