title: Bigquery + PHP examples
body: <p>Can somebody provide working example of using the Bigquery API with PHP. I see there are examples for python and java but could not find anything for PHP.</p>
  
  <p>Here is the bigquery browser <a href="https://bigquery.cloud.google.com/?pli=1" rel="nofollow">https://bigquery.cloud.google.com/?pli=1</a></p>
  
  <p>For e.g You can run this SQL in the browser</p>
  
  <pre><code>SELECT corpus,count(*) FROM publicdata:samples.shakespeare 
  group by corpus limit 5;
  </code></pre>
  
  <p>I want to simulate similar call via PHP. </p>
  
  <p>Even a rough example of how to use the PHP API will help a lot.</p>