If on your site there is a possibility of uploading of archives and you would like to add functionality of their automatic unpacking and viewing with no dependency on format of the archive, you can use this library.
Short description of UnifiedArchive library:
UnifiedArchive - unified interface to archive (zip # 7z # rar # gz # bz2 # xz # tar # tar.gz # tar.bz2 # tar.xz # tar.Z # iso-9660) for listing, reading, extracting and creation + built-in console packer and unpacker + fully implemented PclZip-like interface (create, listContent, extract, properties, add, delete, merge, duplicate).
Supported archive types:
The preferred way to install this extension is through composer.
$ php composer.phar require wapmorgan/unified-archive "0.0.6"
to the require section of your composer.json file.