It's better when it's simple
Learn about DokuWiki
Follow us on Mastodon and other social networks.
DokuWiki uses the php-archive library to handle compression and decompression of Zip and Tgz files.
Refer to the API docs for details.
An example can be found in the decompress() method of the Extension Manager Plugin.