Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Vtiful\Kernel\Excel::autoFilterVtiful\Kernel\Excel::__construct>
^Vtiful\Kernel\ExcelLast updated: Mon, 26 Oct 2026

Vtiful\Kernel\Excel::constMemory

(PECL xlswriter >= 1.2.1)

Vtiful\Kernel\Excel::constMemory — Vtiful\Kernel\Excel constMemory

Description

public function Vtiful\Kernel\Excel::constMemory(string $fileName, string $sheetName = ?)

Write a large file with constant memory usage.

Parameters

fileName

XLSX file name

sheetName

Worksheet name

Return Values

Vtiful\Kernel\Excel instance

Examples

Example #1 example

<?php
$config = [
  'path' => '/home/viest'
];

$fileObject = new \Vtiful\Kernel\Excel($config);

$file = $fileObject->constMemory('tutorial.xlsx', 'sheet');
?>

<Vtiful\Kernel\Excel::autoFilterVtiful\Kernel\Excel::__construct>
^Vtiful\Kernel\ExcelLast updated: Mon, 26 Oct 2026