new FileWriter(), ]; # create archive in this directory with a comment ZipStream::send($zip_path, function(ZipStream &$zip) { # add a file "hello.txt" to output with a comment $zip->add_file('hello.txt', 'hello world!', [ 'comment' => 'hello this is a comment!', ]); }, $zip_args);