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