How do I rename the files I add to the archive? I have tried the following and it adds a file to the archive but I can't figure out how do rename.
$archive = new PclZip('archive.zip');
$list = $archive->add($filepath);
I know that I can use PCLZIP_ATT_FILE_NAME and PCLZIP_ATT_FILE_NEW_FULL_NAME but the example below uses $archive->create, not $archive->add.