php - Open ZipArchive from file content string instead of file without base64 encoding

one text

The PHP documentation offers a simple way to load a ZipArchive from a file like the following:

$zip = new \ZipArchive();
$zip->open('file.zip');

Using an external file storage which is abstracted away means I don't have local files, but only file content to read files. Is there any way to load a ZipArchive from the file content?

Something like

$zip->fromString($fileContent);

Only available solutions found here are converting everything into base64 encoding in between which is to memory intensive for larger files and therefore fails.

Source