I'm trying to download a zip from a folder that i have on my app (Laravel 5.8), it's working but they skip all empty folders, and I need them in the zip.
I already tried ZipArchive (php) and chumper/zipper from composer.
Any idea of how can i do this?
This is a Linux Server, running MySQL 5, PHP 7.2 and Apache2.
$files = glob($folder_path);
\Zipper::make($folder_path.'/'.$folder_main_name.'.zip')->add($files)->close();
This lib only accepts glob, but if you have any solution that works, i can easily abandon this.