PHP code example of hankz / laravel-google-bigquery
1. Go to this page and download the library: Download hankz/laravel-google-bigquery library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hankz / laravel-google-bigquery example snippets
return [
/*
|--------------------------------------------------------------------------
| Application Credentials
|--------------------------------------------------------------------------
|
| Path to the Service Account Credentials JSON File
|
| https://googlecloudplatform.github.io/google-cloud-php/#/docs/google-cloud/v0.35.0/guides/authentication
|
*/
'application_credentials' => env('GOOGLE_CLOUD_APPLICATION_CREDENTIALS'),
/*
| OPTIONAL:
| Use keyFile to use a json config from the current environment.
| For example secrets in laravel vapor
|
| https://docs.vapor.build/1.0/projects/environments.html#secrets
*/
//'keyFile' => json_decode(trim(env('GOOGLE_CLOUD_APPLICATION_CREDENTIALS')), true),
/*
|--------------------------------------------------------------------------
| Project ID
|--------------------------------------------------------------------------
|
| The Project Name is a user-friendly name,
| while the Project ID is --
| Dataset location
|--------------------------------------------------------------------------
|
| Specify the dataset location.
|
| Supported values can be found at https://cloud.google.com/bigquery/docs/locations
|
*/
'location' => '',
];