Package proposal: league/zip

49 views
Skip to first unread message

Peter Ivanov

unread,
Aug 3, 2016, 7:33:05 PM8/3/16
to thephpleague
Hello,

I have a need to have independent way to create zip archives in pure PHP

I want to propose idea for creation of "league/zip" package that can handle zip archives naively without the need of exe/zip 

Here is some code i am using now https://github.com/Grandt/PHPZip 


Ben Corlett

unread,
Aug 3, 2016, 7:41:37 PM8/3/16
to Peter Ivanov, thephpleague
I’m trying to figure the size of an audience who doesn’t have zip support in PHP that couldn’t add it?

In essence, why is this needed?

Thanks :)

--
You received this message because you are subscribed to the Google Groups "thephpleague" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thephpleague...@googlegroups.com.
To post to this group, send email to thephp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/thephpleague/9a51d2ce-8e06-4f05-a6cd-41ccd3bb05ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Peter Ivanov

unread,
Aug 3, 2016, 7:51:11 PM8/3/16
to thephpleague
most shared hosting don't support it and also they don't support gzip too

that's why i have to use the mentioned package when i distribute software for shared hosting 

it will be nice if we have well maintained package for handling with zips 

Colin O'Dell

unread,
Aug 4, 2016, 9:43:14 AM8/4/16
to Peter Ivanov, thephpleague
Flysystem has a ZipArchiveAdapter which makes it easy to work with zip files: https://github.com/thephpleague/flysystem-ziparchive/blob/master/src/ZipArchiveAdapter.php  Would that suit your needs or are you looking for something more advanced (dealing with compression levels, splitting archives, etc)?

Colin

--
You received this message because you are subscribed to the Google Groups "thephpleague" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thephpleague...@googlegroups.com.
To post to this group, send email to thephp...@googlegroups.com.

Peter Ivanov

unread,
Aug 5, 2016, 8:20:50 AM8/5/16
to thephpleague
Hi,

The Flysystem adapter uses ZipArchive and depends on "ext/zip"

That is what i am trying to avoid, the library i am using now https://github.com/Grandt/PHPZip does not depend on "ext/zip", but its not actively maintained 

Phil Sturgeon

unread,
Aug 7, 2016, 10:24:42 AM8/7/16
to Peter Ivanov, thephpleague
Hey folks,

Just dropping by to say there is absolutely a use case for this. Avoiding PECL extensions and things like ZipArchive (which is not always there) is absolutely an unfortunate reality for CMS developers.

For PyroCMS we had https://github.com/philsturgeon/codeigniter-unzip which was based off of somebody else's code and turned into a code igniter lib (with their permission of course).

The code isn't excellent and it's only half the solution, but it might be a start. 

--
Phil Sturgeon
Sent from an address that I don't know why you emailed in the first place

Márk Sági-Kazár

unread,
Aug 9, 2016, 5:54:02 PM8/9/16
to thephpleague
I agree with Phil, there is absolutely need for a userland low-level archiving solution when the extensions are not available.
Reply all
Reply to author
Forward
0 new messages