Easy to use http-client with fluent api.
phore_http_request("http://localhost/test.php?case=200")->withMethod()
Request Caching requires phore/cache
package to be installed
$cache = new Cache(new ObjectStore(new FileSystemObjectStoreDriver("/tmp/cache1")));
$req = phore_http_request("http://localhost/")->withCache($cache)->send();
if ($req->isFromCache() === true)
echo "From Cache: " . $req->getBody();
Examples: