Skip to content

Commit

Permalink
Fixed highlighting (Chumper#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
nextlevelshit authored and Chumper committed May 5, 2018
1 parent 7cec951 commit fe07466
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,10 @@ removes a single file or an array of files from the zip.

Specify a folder to 'add files to' or 'remove files from' from the zip, example

Zipper::make('test.zip')->folder('test')->add('composer.json');
Zipper::make('test.zip')->folder('test')->remove('composer.json');

```php
Zipper::make('test.zip')->folder('test')->add('composer.json');
Zipper::make('test.zip')->folder('test')->remove('composer.json');
```

## listFiles($regexFilter = null)

Expand Down Expand Up @@ -129,7 +130,9 @@ closes the zip and writes all changes.

Extracts the content of the zip archive to the specified location, for example

Zipper::make('test.zip')->folder('test')->extractTo('foo');
```php
Zipper::make('test.zip')->folder('test')->extractTo('foo');
```

This will go into the folder `test` in the zip file and extract the content of that folder only to the folder `foo`, this is equal to using the `Zipper::WHITELIST`.

Expand Down

0 comments on commit fe07466

Please sign in to comment.