Property | Type | Description | |
---|---|---|---|
$logger | |||
$options |
Method | Description | |
---|---|---|
__construct ( CLIFramework\Logger $logger, |
||
download ( string $url, string $targetFilePath = null ) : boolean | string | ||
hasSupport ( $requireSsl ) | ||
request ( $url ) : boolean | string | fetch the remote content. | |
resolveDownloadFileName ( string $url ) : string | boolean |
Method | Description | |
---|---|---|
process ( $url, $targetFilePath ) |
public __construct ( CLIFramework\Logger $logger, |
||
$logger | CLIFramework\Logger | |
$options |
public download ( string $url, string $targetFilePath = null ) : boolean | string | ||
$url | string | the url to be downloaded |
$targetFilePath | string | the path where file to be saved. null means auto-generated temp path |
return | boolean | string | if download successfully, return target file path, otherwise return false. |