SkillAgentSearch skills...

Tbszip

TbsZip is a simple PHP class that helps to work with zip archives. You can create a new archive, or virtually read and modify an existing one. It needs no exe file and makes no temporary files.

Install / Use

/learn @Skrol29/Tbszip
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

TbsZip

TbsZip is a simple PHP class that helps to work with zip archives. You can read, modify, or create a zip archive. No exe file is needed, and no temporary files are created.

Documentation

Help file

Examples

// Reading contents
$zip = new clsTbsZip();
$zip->Open('archive1.zip');
if ($zip->FileExists('subfile2.txt')) {
	$data = $zip->FileRead('subfile2.txt');
}
$zip->Close();
// Writing contents
$zip = new clsTbsZip();
$zip->Open('archive1.zip');
$zip->FileReplace('subfile2.txt', $txt, TBSZIP_STRING);
$zip->Flush(TBSZIP_FILE, 'archive1_new.zip'); // save the modifications as a new archive
$zip->Close();
// Creating a new archive
$zip = new clsTbsZip();
$zip->CreateNew();
$zip->FileAdd('newfile.txt', $data, TBSZIP_STRING);
$zip->Flush(TBSZIP_FILE, 'archive1_new.zip'); // save the modifications as a new archive
$zip->Close();
// Direct download without saving
$zip->Flush(TBSZIP_DOWNLOAD, 'download.zip'); // see doc fore more options
View on GitHub
GitHub Stars6
CategoryDevelopment
Updated5mo ago
Forks5

Languages

PHP

Security Score

72/100

Audited on Oct 31, 2025

No findings