Create & Stream Zip Files
laravel-zipstreamis a fast and simple streaming .zip file downloader for Laravel.
It lets you build zip files from local or S3 file sources, or any other PSR7 stream, and then provides a direct download stream to your user. The download begins immediately even though the zip is still being created – no need to save it to disk first.
laravel-zipstreamalso calculates the file size up front for the
Content-Lengthheader, so the user gets an accurate download time estimate.
It's built on top of the ZipStream-PHP library."