All formats

CBZ libraries for PHP

ZipArchive from PHP’s zip extension (a wrapper of libzip) reads and writes CBZ files with random access to entries. PHP’s built-in strnatcasecmp does the natural page sort, and SimpleXML parses ComicInfo.xml, so no Composer package is needed.

PHP has no maintained RAR or 7z library. For CBT use PharData; convert CBR and CB7 to CBZ with a command-line tool.