Yngvarr

Generation

generate functionSat, 07 Jan 2023

pack to gz and return archive

function archive($dir) { $archive = $dir.'.tar.gz'; $archive = new PharData($archive); $archive->buildFromDirectory($dir); return $dir.'.tar.gz'; }

Questions about programming?Chat with your personal AI assistant