Skip to content
This repository has been archived by the owner on Feb 25, 2020. It is now read-only.

How to use usePassword method in zipper ? #75

Open
jignesh-huskerit opened this issue Oct 21, 2016 · 4 comments
Open

How to use usePassword method in zipper ? #75

jignesh-huskerit opened this issue Oct 21, 2016 · 4 comments

Comments

@jignesh-huskerit
Copy link

jignesh-huskerit commented Oct 21, 2016

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

@Rdxer
Copy link

Rdxer commented Jun 14, 2018

+1

@Rdxer
Copy link

Rdxer commented Jun 14, 2018

"Call to a member function usePassword() on null"

@Rdxer
Copy link

Rdxer commented Jun 14, 2018

$zipper = new Zipper();
$zipper->usePassword('pwd');

    $zipper->make('zf/test.zip')->add(Storage::path('files/LCZbGYgqOW2xFFMouh4VkVUEMEUFjQJgKgN9HC2Q.pdf'));

    $zipper->close();

@bradley-varol
Copy link

bradley-varol commented Nov 16, 2018

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();

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants