php - Converting an html table to excel with SpreadSheet but displaying-hiding the data inside the excel file cause of the small default cells

one text

Solution:

You can set the with of a cell with see documentation here.

$sheet->getColumnDimension('A')->setWidth(12);

with autosize you start a more or less good automatic callculation.

$sheet->getColumnDimension('A')->setAutoSize(true);

Source