title: Class not found in Google Cloud app
body: <p>I am getting the following <strong>error:</strong></p>
  
  <blockquote>
    <p>Fatal error: Class 'Google\Cloud\Datastore\DatastoreClient' not found in /base/data/home/apps/e~brookes-room-usage/1.3998538263957262‌​38/record-usage.php on line 84</p>
  </blockquote>
  
  <p>so presumably I have failed to point my app correctly to that class.</p>
  
  <p>I have enabled the Datastore API on the cloud console.</p>
  
  <p>I have tried to find documentation relating to how to set up a PHP connection to the Datastore API. </p>
  
  <p>I tried to <a href="https://cloud.google.com/php/getting-started/using-cloud-datastore" rel="nofollow noreferrer">create a settings.yml file using the instructions here</a> but I didn't know what my client ID or my client secret were.</p>
  
  <pre><code># Google credentials and configuration
  google_client_id:      YOUR_CLIENT_ID
  google_client_secret:  YOUR_CLIENT_SECRET
  google_project_id:     YOUR_PROJECT_ID
  
  # options are "cloudsql", "mongodb", or "datastore"
  bookshelf_backend: datastore
  </code></pre>
  
  <p>(<a href="https://github.com/GoogleCloudPlatform/getting-started-php/blob/master/2-structured-data/config/settings.yml.dist" rel="nofollow noreferrer">source on Github</a>)</p>
  
  <p><strong>What do I need to get my PHP app on Google Cloud to recognise <code>Google\Cloud\Datastore\DatastoreClient</code> and connect to the Datastore API so that I can retrieve and post data?</strong></p>