{"repo":"madnest/madzipper","free":true,"listed":false,"github":"https://github.com/madnest/madzipper","clone":"git clone https://github.com/madnest/madzipper.git","description":"Easier zip file handling for Laravel applications.","language":"PHP","stars":138,"topics":["laravel","laravel-package","zip","ziparchive"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Madzipper This is a simple Wrapper around the ZipArchive methods with some handy functions. Installation 1. madnest/madzipper can be installed by running: 2. Optionally when using with Laravel, go to app/config/app.php - add to providers Madnest\\Madzipper\\MadzipperServiceProvider::class You can now access Madzipper with the Madzipper alias. Versions Package Laravel PHP :------- :------------ :----- v1.7 12. 13. ^8.3 v1.6 11. 12. ^8.2 v1.5 11. ^8.2 v1.4 10. ^8.1 v1.3 9. ^8.0 v1.2 8. ^8.0 Simple Laravel example by using Madzipper facade - by default the package will create the test.zip in the project route folder but in the example above we changed it to project route/public/ . Another example Note: Please be aware that you need to call - close() at the end to write the zip file to disk. You can easily chain most functions, except getFileContent , getStatus , close and extractTo which must come at the end of the chain. The main reason I wrote this little package is the extractTo method since it allows you to be very flexible when extracting zips. So you can for example implement an update method which will just override the changed files. Functions make($pathToFile) Create or Open a zip archive; if the file does not exists it will create a new one. It will return the Zipper instance so you can chain easily. add($files/folder) You can add an array of Files, or a Folder and all the files in that folder will then be added, so from the first example we could instead do something li","default_branch":null,"files":null,"tree":[],"storefront":"/r/madnest","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/madnest/madzipper/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."}