Simple cURL based HTTP Client that relays GET/POST data.
<?php
use anytizer\relay;
$url = "http://domain/path";
// Fill up your data here, yes: super globals.
$_GET = [];
$_POST = [];
$relay = new relay();
$relay->headers([
"X-Protection-Token" => "",
]);
$result = $relay->fetch($url);
Use one of the following:
composer global require anytizer/relay.php=dev-master
composer require anytizer/relay.php=dev-master