Property | Type | Description | |
---|---|---|---|
$bucket | |||
$bucketExists | |||
$detectContentType | |||
$metadata | |||
$options | |||
$service |
Method | Description | |
---|---|---|
__construct ( |
||
delete ( $key ) | ||
exists ( $key ) | ||
getMetadata ( $key ) | ||
getUrl ( string $key, array $options = [] ) : string | Gets the publicly accessible URL of an Amazon S3 object. | |
isDirectory ( $key ) | ||
keys ( ) | ||
listKeys ( $prefix = '' ) | ||
mtime ( $key ) | ||
read ( $key ) | ||
rename ( $sourceKey, $targetKey ) | ||
setMetadata ( $key, $metadata ) | ||
size ( $key ) | ||
write ( $key, $content ) |
Method | Description | |
---|---|---|
computeKey ( string $path ) | Computes the key from the specified path. | |
computePath ( $key ) | ||
ensureBucketExists ( ) | Ensures the specified bucket exists. If the bucket does not exists and the create option is set to true, it will try to create the bucket. The bucket is created using the same region as the supplied client object. | |
getOptions ( $key, array $options = [] ) |
public __construct ( |
||
$service | ||
$options | array |
protected computeKey ( string $path ) | ||
$path | string | return string |
protected ensureBucketExists ( ) |
public getUrl ( string $key, array $options = [] ) : string | ||
$key | string | Object key |
$options | array | Associative array of options used to buld the URL - expires: The time at which the URL should expire represented as a UNIX timestamp - Any options available in the Amazon S3 GetObject operation may be specified. |
return | string |