Tôi cần có khả năng xử lý các tệp zip theo chương trình.
Trong magento 1.9 tôi đã làm:
$zip = new ZipArchive();
if ($zip->open($Zippath) === TRUE)
{
$zip->addFile($Filepath, $Filename);
$zip->addFile($FilepathL, "toto.txt");
$zip->close();
return TRUE; }
Làm thế nào tôi có thể làm tương tự trong magento 2?