Client
class Client implements IteratorAggregate, Countable
Traits
Methods
Download file via URL
Initialization HTTP instance and Client instance
Register guzzle option
Register massive guzzle option
Reset previous instance
Implement Countable interface method to count requested result data
No description
No description
Details
in
Utils at line 17
getContent()
No description
in
Utils at line 22
getHeader(string $key = '')
No description
in
Utils at line 27
getStatusCode()
No description
in
Utils at line 32
static
compileOptions(array $options)
No description
in
Utils at line 42
isJson()
No description
in
Utils at line 48
toArray()
No description
in
Utils at line 53
setError(string $error)
No description
in
Utils at line 58
getError()
No description
in
ArrayAble at line 24
ArrayIterator
getIterator()
Implement IteratorAggregate interface
Use for iterate attributes at foreach()
in
Download at line 23
static anonymousClass
download(string $url, array $options = [])
Download file via URL
in
Download at line 32
__construct($url, $top, $options)
No description
in
Download at line 46
void
to(string $pathToSaveFile)
Make http get request and sink it into some path
in
Download at line 79
void
withProgress(string $pathToSaveFile, Closure $callback)
Download file with progress
at line 57
static void
init(string $url = '', array $options = [])
Initialization HTTP instance and Client instance
at line 88
static void
withOption(string $key, array|string|bool $value)
Register guzzle option
at line 102
static void
withOptions(array $options)
Register massive guzzle option
at line 115
static void
reset()
Reset previous instance
at line 154
int
count()
Implement Countable interface method to count requested result data
at line 159
static
__callStatic($method, $options)
No description
at line 165
__call($method, $options)
No description