constMemory(string $fileName[, string $sheetName = 'Sheet1', bool $enableZip64 = true]);
$config = ['path' => './tests'];
$excel = new \Vtiful\Kernel\Excel($config);
// ConstMemory 默认开启 ZIP64
$fileObject = $excel->constMemory('tutorial01.xlsx');
$fileHandle = $fileObject->getHandle();
$format = new \Vtiful\Kernel\Format($fileHandle);
$boldStyle = $format->bold()->toResource();
$fileObject->setRow('A1', 10, $boldStyle) // 写入数据前设置行样式
->header(['name', 'age'])
->data([['viest', 21]])
->output();
$config = ['path' => './tests'];
$excel = new \Vtiful\Kernel\Excel($config);
// 第三个参数 False 即为关闭 ZIP64
$fileObject = $excel->constMemory('tutorial01.xlsx', NULL, false);
$fileHandle = $fileObject->getHandle();
$format = new \Vtiful\Kernel\Format($fileHandle);
$boldStyle = $format->bold()->toResource();
$fileObject->setRow('A1', 10, $boldStyle) // 写入数据前设置行样式
->header(['name', 'age'])
->data([['viest', 21]])
->output();