1. Go to this page and download the library: Download sesser/scurl library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sesser / scurl example snippets
$scurl = Sesser\Scurl\Scurl::getInstance();
$after_hash = $scurl->addListener(Sesser\Scurl\Scurl::EVENT_AFTER, function(Sesser\Scurl\Request $request, Sesser\Scurl\Response $response) {
//-- Do some magic here... inspect the request headers, log the url and time it took, etc
});