# Download

trait Download

## Methods

static anonymousClass
download(string $url, array $options = [])

Download file via URL

__construct($url, $top, $options)

No description

void
to(string $pathToSaveFile)

Make http get request and sink it into some path

void
withProgress(string $pathToSaveFile, Closure $callback)

Download file with progress

## Details

###
at line 23
`static anonymousClass download(string $url, array $options = [])`

Download file via URL

#### Parameters

string | $url |
array | $options |

#### Return Value

anonymousClass |

###
at line 32
`__construct($url, $top, $options)`

No description

#### Parameters

| $url |
| $top |
| $options |

###
at line 46
`void to(string $pathToSaveFile)`

Make http get request and sink it into some path

#### Parameters

string | $pathToSaveFile |

#### Return Value

void |

###
at line 79
`void withProgress(string $pathToSaveFile, Closure $callback)`

Download file with progress

#### Parameters

string | $pathToSaveFile |
Closure | $callback |

#### Return Value

void |