public static function dir($sourcePath, $outZipPath)
    {
        $sourcePath = rtrim($sourcePath, "/");
        $zip = new ZipArchive();
        $zip->open($outZipPath, ZipArchive::CREATE);
        self::folderToZip($sourcePath, $zip, strlen($sourcePath . "/"));
        $zip->close();
    }