2017 © Pedro Peláez
 

library cloud-bigquery

BigQuery Client for PHP

image

google/cloud-bigquery

BigQuery Client for PHP

  • Thursday, July 19, 2018
  • by bshaffer
  • Repository
  • 38 Watchers
  • 7 Stars
  • 86,763 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 24 Versions
  • 39 % Grown

The README.md

Google BigQuery for PHP

Idiomatic PHP client for Google BigQuery., (*1)

Latest Stable Version Packagist, (*2)

NOTE: This repository is part of Google Cloud PHP. Any support requests, bug reports, or development contributions should be directed to that project., (*3)

Allows you to create, manage, share and query data., (*4)

Installation

To begin, install the preferred dependency manager for PHP, Composer., (*5)

Now install this component:, (*6)

$ composer require google/cloud-bigquery

Authentication

Please see our Authentication guide for more information on authenticating your client. Once authenticated, you'll be ready to start making requests., (*7)

Sample

require 'vendor/autoload.php';

use Google\Cloud\BigQuery\BigQueryClient;

$bigQuery = new BigQueryClient();

// Get an instance of a previously created table.
$dataset = $bigQuery->dataset('my_dataset');
$table = $dataset->table('my_table');

// Begin a job to import data from a CSV file into the table.
$loadJobConfig = $table->load(
    fopen('/data/my_data.csv', 'r')
);
$job = $table->runJob($loadJobConfig);

// Run a query and inspect the results.
$queryJobConfig = $bigQuery->query(
    'SELECT * FROM `my_project.my_dataset.my_table`'
);
$queryResults = $bigQuery->runQuery($queryJobConfig);

foreach ($queryResults as $row) {
    print_r($row);
}

Version

This component is considered GA (generally available). As such, it will not introduce backwards-incompatible changes in any minor or patch releases. We will address issues and requests with the highest priority., (*8)

Next Steps

  1. Understand the official documentation.
  2. Take a look at in-depth usage samples.

The Versions

01/02 2018

v1.0.3

1.0.3.0

BigQuery Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

23/01 2018

v1.0.2

1.0.2.0

BigQuery Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

12/01 2018

v1.0.1

1.0.1.0

BigQuery Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

05/01 2018

v1.0.0

1.0.0.0

BigQuery Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

29/12 2017

v0.6.0

0.6.0.0

BigQuery Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

22/12 2017

v0.5.0

0.5.0.0

BigQuery Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

16/12 2017

v0.4.0

0.4.0.0

BigQuery Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

11/11 2017

v0.3.1

0.3.1.0

BigQuery Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

17/10 2017

v0.3.0

0.3.0.0

BigQuery Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

15/09 2017

v0.2.4

0.2.4.0

BigQuery Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

25/08 2017

v0.2.3

0.2.3.0

BigQuery Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

02/08 2017

v0.2.2

0.2.2.0

BigQuery Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

18/05 2017

v0.2.1

0.2.1.0

BigQuery Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

31/03 2017

v0.2.0

0.2.0.0

BigQuery Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

10/03 2017

v0.1.0

0.1.0.0

BigQuery Client for PHP

  Sources   Download

Apache-2.0

The Requires