stechstudio/laravel-zipstream

Is it possible to add new file to a Saved zip file without overwriting it?

Closed this issue · 1 comments

  1. I want to create a zip file xml.zip
  2. Add a file 1.xml
  3. Save the zip
  4. after a given time want to add 2.xml to the existent zip

Is this possible with this lib?

No that's not the purpose of this package at all. To interact with and modify an existing zip just use the built-in PHP methods:

https://www.php.net/manual/en/ziparchive.addfile.php

There are also many userland packages that provide a nicer way to manipulate Zip files, here's one I found:

https://github.com/Ne-Lexa/php-zip