title: PHP SpreadSheet can't find the function to auto size column width
body: <p>I simply want the columns to autosized. I am using php spreadsheet and I can't find how to do it. I have searched other questions but they are using functions that i can't event find in my lib worksheet.php like <code>getActiveSheet()</code> Any advise ? This is my code </p>
  
  <pre><code>$spreadsheet = new Spreadsheet();
  $sheet = $spreadsheet-&gt;getActiveSheet();
  $sheet-&gt;setCellValue('A1', 'Projects First Year');
  $sheet-&gt;setCellValue('B1', 'Grades');
  
  $sheet-&gt;setCellValue('A2', 'PHP Project 2020');
  $sheet-&gt;setCellValue('B2', $_SESSION['phpScore']);
  </code></pre>