init
This commit is contained in:
commit
72a26edcff
22092 changed files with 2101903 additions and 0 deletions
21
lib/PhpSpreadsheet/Writer/ZipStream2.php
Normal file
21
lib/PhpSpreadsheet/Writer/ZipStream2.php
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
namespace PhpOffice\PhpSpreadsheet\Writer;
|
||||
|
||||
use ZipStream\Option\Archive;
|
||||
use ZipStream\ZipStream;
|
||||
|
||||
class ZipStream2
|
||||
{
|
||||
/**
|
||||
* @param resource $fileHandle
|
||||
*/
|
||||
public static function newZipStream($fileHandle): ZipStream
|
||||
{
|
||||
$options = new Archive();
|
||||
$options->setEnableZip64(false);
|
||||
$options->setOutputStream($fileHandle);
|
||||
|
||||
return new ZipStream(null, $options);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue