{"repo":"stechstudio/laravel-zipstream","free":true,"listed":false,"github":"https://github.com/stechstudio/laravel-zipstream","clone":"git clone https://github.com/stechstudio/laravel-zipstream.git","description":"Easily create Zip files on-the-fly and provide a streaming download","language":"PHP","stars":462,"topics":["zip","laravel","streaming","streaming-zip"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Streaming Zips with Laravel A fast and simple streaming zip file downloader for Laravel. - Builds zip files from local or S3 file sources, or any other PSR7 stream. - Provides a direct download stream to your user. The zip download begins immediately even though the zip is still being created. No need to save the zip to disk first. - Calculates the zip filesize up front for the Content-Length header. The user gets an accurate download time estimate in their browser. - Built on top of the excellent ZipStream-PHP library. Upgrading Upgrading from version 4? Make sure to look at the release notes for version 5. There are some breaking changes. https://github.com/stechstudio/laravel-zipstream/releases/tag/5.0 Quickstart 1. Install the package The service provider and facade will be automatically wired up. 2. In a controller method call the create method on the Zip facade That's it! A StreamedResponse will be returned and the zip contents built and streamed out. The user's browser will begin downloading a package.zip file immediately. Customize the internal zip path for a file By default, any files you add will be stored in the root of the zip, with their original filenames. You can customize the filename and even create sub-folders within the zip by providing your files array with key/value pairs: Fluent usage You can also provide your files one at a time: Add HTTP file sources You can add HTTP URLs as the source filepath. Note that zip filesize can only be calculated up front if","default_branch":null,"files":null,"tree":[],"storefront":"/r/stechstudio","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/stechstudio/laravel-zipstream/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}