1
2
3
$excel = new Spreadsheet();
$sheet = $excel->getActiveSheet();
$sheet->getColumnDimension('A')->setAutoSize(true);