Skip to content

Commit 4acb5a4

Browse files
Updated documentation
1 parent bbe4216 commit 4acb5a4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,11 @@ Create a ZIP archive containing a file from a GitHub repository:
6060
$zipPath = GithubFile::zip('owner/repo', 'path/to/file.txt');
6161
```
6262

63-
The ZIP file will be stored in the default disk's `zips` directory.
63+
The ZIP file will be stored in the default disk's `zips` directory. Or zip multiple files at the same times.
64+
65+
```php
66+
$zipPath = GithubFile::zip('owner/repo', ['path/to/file.txt', 'path/to/file2.txt']);
67+
```
6468

6569
## Testing
6670

src/Facades/GithubFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* @method static string get(string $repository, string $filePath, string $branch = 'main')
1010
* @method static string download(string $repository, string $filePath, string $disk = 'local', string $branch = 'main')
11-
* @method static string zip(string $repository, string $filePath, string $disk = 'local', string $branch = 'main')
11+
* @method static string zip(string $repository, string|array $filePath, string $disk = 'local', string $branch = 'main')
1212
*
1313
* @see \VeiligLanceren\GithubFile\Services\GithubFileService
1414
*/

0 commit comments

Comments
 (0)