Vtiful\Kernel\Excel::constMemory
PHP function
Edit on GitHub ✎
(PECL xlswriter >= 1.2.1)
Vtiful\Kernel\Excel constMemory
Description
Vtiful\Kernel\Excel::constMemory(string $fileName, [string $sheetName])
Write a large file with constant memory usage.
Parameters
fileNameXLSX file name
sheetNameWorksheet name
Return Values
Vtiful\Kernel\Excel instance
Examples
example
php
<?php
$config = [
'path' => '/home/viest'
];
$fileObject = new \Vtiful\Kernel\Excel($config);
$file = $fileObject->constMemory('tutorial.xlsx', 'sheet');
?>