7z extension for php?

Elzo Valugi picture Elzo Valugi · Oct 8, 2010 · Viewed 15.4k times · Source

I can't find one and I don't know if any of PHP Compression and Archive Extensions will work.

Do you think I could use a compression stream to read data from a 7z file?

UPDATE

  • 7z forums have a lot of requests for a php extension

Answer

bobdiaes picture bobdiaes · Oct 8, 2010

The 7z file format can use various compression algorithms, so you might be able to decompress the archive with one of the existing utilities for bzip2 or deflate.

I found a 7z PHP class as well, and you are lucky since it's still being developed. Here is the latest version.