All formats

CBT libraries for PHP

PharData from the phar extension (enabled by default) reads and writes tar archives. Files inside are reachable by array access and as phar:// stream URLs, so serving a page is one readfile call. For CBZ use ZipArchive.