No description, website, or topics provided.
Clone or download
jdpedrie Prepare v0.82.0 (#1337)
## Google Cloud PHP v0.82.0

### google/cloud-bigquery v1.4.5

* Remove unnecessary ternary expression (#1327)
* Use dedicated PHPUnit assertions (#1331)

### google/cloud-core v1.23.7

* Use combined assignment operators when possible (#1328)
* Remove unused variables passed to closures (#1330)

### google/cloud-datastore v1.5.10

* Use combined assignment operators when possible (#1328)
* Use dedicated PHPUnit assertions (#1331)

### google/cloud-debugger v0.14.2

* Remove unused variables passed to closures (#1330)
* Use dedicated PHPUnit assertions (#1331)

### google/cloud-firestore v0.15.3

* Fix handling of empty sets in Firestore updates (#1316)
* Remove auxiliary variables when they are return right away (#1329)

### google/cloud-spanner v1.11.0

* Use combined assignment operators when possible (#1328)
* Remove unused variables passed to closures (#1330)
* Add support for DML and Partitioned DML (#1309)

### google/cloud-storage v1.9.1

* Use dedicated PHPUnit assertions (#1331)

### google/cloud-vision v0.17.2

* Use dedicated PHPUnit assertions (#1331)
Latest commit 0188988 Oct 8, 2018

README.md

Google BigQuery for PHP

Idiomatic PHP client for Google BigQuery.

Latest Stable Version Packagist

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

Allows you to create, manage, share and query data.

Installation

To begin, install the preferred dependency manager for PHP, Composer.

Now to install just this component:

$ composer require google/cloud-bigquery

Or to install the entire suite of components at once:

$ composer require google/cloud

Authentication

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

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 = 'SELECT * FROM [my_project:my_dataset.my_table]';
$queryResults = $bigQuery->runQuery($queryConfig);

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.

Next Steps

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