Properties

$options

$options : array

Type

array — Configs

$image_options

$image_options : array

Type

array — Image url options

$batch

$batch : 

Type

$batch_operators

$batch_operators : 

Type

Methods

__construct()

__construct(array  $options) 

Parameters

array $options

uploadFile()

uploadFile(string  $path, string  $key) : boolean|\Qiniu\Result

Upload file

Parameters

string $path
string $key

Throws

\InvalidArgumentException

Returns

boolean|\Qiniu\Result

upload()

upload(string  $string, string  $key) : boolean|\Qiniu\Result

Upload string

Parameters

string $string
string $key

Returns

boolean|\Qiniu\Result

stat()

stat(string  $key) : boolean|\Qiniu\Result|\Qiniu\Client

Get file stats

Parameters

string $key

Returns

boolean|\Qiniu\Result|\Qiniu\Client

move()

move(string  $key, string  $new_key) : boolean|\Qiniu\Result|\Qiniu\Client

Move file

Parameters

string $key
string $new_key

Returns

boolean|\Qiniu\Result|\Qiniu\Client

copy()

copy(string  $key, string  $new_key) : boolean|\Qiniu\Result|\Qiniu\Client

Copy file

Parameters

string $key
string $new_key

Returns

boolean|\Qiniu\Result|\Qiniu\Client

delete()

delete(string  $key) : boolean|\Qiniu\Result|\Qiniu\Client

Delete file

Parameters

string $key

Returns

boolean|\Qiniu\Result|\Qiniu\Client

ls()

ls(  $prefix = '') : boolean|\Qiniu\Result

Parameters

$prefix

Returns

boolean|\Qiniu\Result

batch()

batch() : $this

Start batch mode

Returns

$this

exec()

exec() : \Qiniu\Result

Exec the batch

Throws

\RuntimeException

Returns

\Qiniu\Result

imageInfo()

imageInfo(string  $key) : \Qiniu\Result

Get image info

Parameters

string $key

Returns

\Qiniu\Result

exif()

exif(string  $key) : \Qiniu\Result

Get exif info

Parameters

string $key

Returns

\Qiniu\Result

imageView()

imageView(string  $key, array  $options) : \Qiniu\Result

Generate imageView url

Parameters

string $key
array $options

Returns

\Qiniu\Result

imageMogr()

imageMogr(string  $key, array  $options) : string

Generate imageMogr url

Parameters

string $key
array $options

Returns

string

uploadRequest()

uploadRequest(string  $body, string|array  $key, array  $policy = null) : boolean|\Qiniu\Result

Upload request

Parameters

string $body
string|array $key
array $policy

Returns

boolean|\Qiniu\Result

imageUrl()

imageUrl(string  $key, string  $type, array  $options) : string

Generate image url

Parameters

string $key
string $type
array $options

Returns

string

imageRequest()

imageRequest(string  $key, string  $type) : \Qiniu\Result

Image info request

Parameters

string $key
string $type

Returns

\Qiniu\Result

operateRequest()

operateRequest(string  $uri, string  $key, string  $host = null) : boolean|\Qiniu\Result

Operate request

Parameters

string $uri
string $key
string $host

Returns

boolean|\Qiniu\Result