I need a help to integrate google bigquery code into the PHP. So i can execute query and other kind of operation from php code itself.
Need your help and suggest me some working examples link.
Thanks in advance.
I need a help to integrate google bigquery code into the PHP. So i can execute query and other kind of operation from php code itself.
Need your help and suggest me some working examples link.
Thanks in advance.
Here is a code that
Google_Client
using https://github.com/google/google-api-php-clientYou need to have:
...@developer.gserviceaccount.com
).p12
)code sample:
You can grab the results with:
You can see here the classes that you can use for your other BigQuery calls. When you read the file, please know that file is being generated from other sources, hence it looks strange for PHP, and you need to learn reading it in order to be able to use the methods from it.
https://github.com/google/google-api-php-client/blob/master/src/Google/Service/Bigquery.php
like:
Also check out the questions tagged with [php] and [google-bigquery] https://stackoverflow.com/questions/tagged/google-bigquery+php