PhpBrew\Downloader\BaseDownloader::request PHP Method

request() public method

fetch the remote content.
public request ( $url ) : boolean | string
$url the url to be downloaded
return boolean | string return content if download successfully, otherwise false is returned
    public function request($url)
    {
        $path = $this->download($url);
        return $path === false ? false : file_get_contents($path);
    }