Skip to content

Commit

Permalink
update readme and phpdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
frostealth committed Apr 13, 2017
1 parent 0ea8342 commit ccc7e2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ $result = $s3->commands()->upload('filename.ext', '/path/to/local/file.ext')->wi
$result = $s3->commands()->restore('filename.ext', $days = 7)->execute();
$result = $s3->commands()->list('/path')->execute();
$result = $s3->commands()->list('path/')->execute();
/** @var bool $exist */
$exist = $s3->commands()->exist('filename.ext')->execute();
Expand Down Expand Up @@ -86,6 +86,8 @@ $result = $s3->upload('filename.ext', '/path/to/local/file.ext');
$result = $s3->restore('filename.ext', $days = 7);
$result = $s3->list('path/');
/** @var bool $exist */
$exist = $s3->exist('filename.ext');
Expand All @@ -110,6 +112,8 @@ $promise = $s3->commands()->put('filename.ext', 'body')->async()->execute();
$promise = $s3->commands()->delete('filename.ext')->async()->execute();
$promise = $s3->commands()->upload('filename.ext', 'source')->async()->execute();
$promise = $s3->commands()->list('path/')->async()->execute();
```
## Advanced usage
Expand Down
1 change: 1 addition & 0 deletions src/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* @method ResultInterface delete(string $filename)
* @method ResultInterface upload(string $filename, $source)
* @method ResultInterface restore(string $filename, int $days)
* @method ResultInterface list(string $prefix)
* @method bool exist(string $filename)
* @method string getUrl(string $filename)
* @method string getPresignedUrl(string $filename, $expires)
Expand Down

0 comments on commit ccc7e2b

Please sign in to comment.