I have found the following two commands to respecively create and open password protected zip files. I was however wondering if it’s possible to do this in pure PHP
echo system('zip -P password file.zip file.txt');
echo shell_exec('unzip -P password file.zip');
You can create simple file zip using some libraries (as PclZip) but you can’t create zip with the password.