thecodeisbae / curlmanager
cURL Manager class for easy usage
dev-main
2022-08-04 10:51 UTC
This package is auto-updated.
Last update: 2024-06-04 14:59:52 UTC
README
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/'));