Zipper
Zipper copied to clipboard
How to use usePassword method in zipper ?
Hello, I am new to Laravel and not much aware of PHP, so please tell me how to use 'usePassword' method for extract zip file which is password protected.
anyone, please help me,
Thanks in advance, Jignesh
+1
"Call to a member function usePassword() on null"
$zipper = new Zipper(); $zipper->usePassword('pwd');
$zipper->make('zf/test.zip')->add(Storage::path('files/LCZbGYgqOW2xFFMouh4VkVUEMEUFjQJgKgN9HC2Q.pdf'));
$zipper->close();
This isn't working for me either. No exception but the zip is created without a password.
$zipper = Zipper::make('dir.zip')->add($dir);
$zipper->usePassword('password');
$zipper->close();