title: Fatal error: Uncaught Error: Class 'Google_Client' not found
body: <p>I trying to get data from google sheets. but what problem i face is Google_client not found. Php version is updated and i do have client.php in my apiclient/src/google</p>
  
  <p>Fatal error: Uncaught Error: Class 'Google_Client' not found in C:\xampp\htdocs\TestCalon\calonan.php:3 Stack trace: #0 {main} thrown in C:\xampp\htdocs\TestCalon\calonan.php on line 3</p>
  
  <pre><code>&lt;?php
  putenv('GOOGLE_APPLICATION_CREDENTIALS=' . __DIR__ . '/client_secret.json');
  $client = new Google_Client;
  $client-&gt;useApplicationDefaultCredentials();
  
  $client-&gt;setApplicationName("Something to do with my representatives");
  $client-&gt;setScopes(['https://www.googleapis.com/auth/drive','https://spreadsheets.google.com/feeds']);
  
  if ($client-&gt;isAccessTokenExpired()) {
      $client-&gt;refreshTokenWithAssertion();
  }
  
  $accessToken = $client-&gt;fetchAccessTokenWithAssertion()["access_token"];
  ServiceRequestFactory::setInstance(
      new DefaultServiceRequest($accessToken)
  );
  
  $spreadsheet = (new Google\Spreadsheet\SpreadsheetService)
     -&gt;getSpreadsheetFeed()
     -&gt;getByTitle('Copy of PRU14 Calon');
  
  // Get the first worksheet (tab)
  $worksheets = $spreadsheet-&gt;getWorksheetFeed()-&gt;getEntries();
  $worksheet = $worksheets[0];
  
  $listFeed = $worksheet-&gt;getListFeed();
  
  /** @var ListEntry */
  foreach ($listFeed-&gt;getEntries() as $entry) {
     $representative = $entry-&gt;getValues();
  }
  
  $cellFeed = $worksheet-&gt;getCellFeed();
  
  $rows = $cellFeed-&gt;toArray();
  
  return $worksheet-&gt;getCsv();
  </code></pre>