Closed abrynczka closed 1 year ago
You can do this now... maybe its good enough as is on master...
$writer->writeSheetHeader('Sheet1', $header1);
$writer->writeSheetRow('Sheet1', $row1 );
$writer->writeSheetHeader('Sheet1', $header2);
$writer->writeSheetRow('Sheet1', $row2);
This PR adds a new
writeSheetRowWithColTypes
method used to set or override column types while writing row data.The original column types defined by
writeSheetHeader
are retained so that the process can revert back to them after writing the current row's data, allowing the header versions to serve as default definitions for the columns.Additionally, users can limit the column type override to target specific columns rather than the entire row: