An simple cURL call manager with PHP
The Class main function is the call function which as 5 overloads :
cURLManager::call($link)
cURLManager::call($link,$method)
cURLManager::call($link,$method,$resultJson)
cURLManager::call($link,$method,$resultJson,$data)
cURLManager::call($link,$method,$resultJson,$data,$headers)
cURLManager::call($link,$method,$resultJson,$data,$headers,$resultFlag)
Basic Usage
require_once('vendor\autoload.php');
use thecodeisbae\cURLManager;
function debug($args)
{
echo '<pre>',print_r($args,1),'</pre>';
}
debug(cURLManager::call('https://randomuser.me/api/'));