PHPackages                             hankz/laravel-google-bigquery - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. hankz/laravel-google-bigquery

ActiveLibrary[Database &amp; ORM](/categories/database)

hankz/laravel-google-bigquery
=============================

v1.0.1(9mo ago)0944MITPHPPHP ^8.1

Since May 9Pushed 9mo agoCompare

[ Source](https://github.com/hankz1108/laravel-google-bigquery)[ Packagist](https://packagist.org/packages/hankz/laravel-google-bigquery)[ Docs](https://github.com/hankz1108/laravel-google-bigquery)[ RSS](/packages/hankz-laravel-google-bigquery/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

Laravel BigQuery
================

[](#laravel-bigquery)

[![Latest Version](https://camo.githubusercontent.com/6a3b2458444bb73424a2c5822e51257f8281a21502fdd2416d0ca28e5edc98a1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f736368756c7a6566656c69782f6c61726176656c2d62696771756572792e7376673f7374796c653d666c61742d737175617265)](https://github.com/schulzefelix/laravel-bigquery/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/7bb94fa72bcf77b95c7c3ac3b52a803528f485249478081e31fa59468a9a173c/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f736368756c7a6566656c69782f6c61726176656c2d62696771756572792f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/schulzefelix/laravel-bigquery)[![Quality Score](https://camo.githubusercontent.com/7a029b82ea5c750af7089d3462584a315579450215626072d4d938747691e4e4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736368756c7a6566656c69782f6c61726176656c2d62696771756572792f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/schulzefelix/laravel-bigquery)[![StyleCI](https://camo.githubusercontent.com/4019923b28522a226c5ddea41fe8e6d8a82769cf47ada32b1eb2a7cd222be62f/68747470733a2f2f7374796c6563692e696f2f7265706f732f39383631353738382f736869656c64)](https://styleci.io/repos/98615788)[![Latest Version on Packagist](https://camo.githubusercontent.com/57ac2b53ca56358cad4ca90ed19e784ee6e165862954ffa699e31b628486f380/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736368756c7a6566656c69782f6c61726176656c2d62696771756572792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/schulzefelix/laravel-bigquery)[![Total Downloads](https://camo.githubusercontent.com/bf8c49436121496de3f92e6e5f8fb70e2aeed876ba78e43ff9cefde4f62195c5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736368756c7a6566656c69782f6c61726176656c2d62696771756572792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/schulzefelix/laravel-bigquery)

Tip

This package is forked from [schulzefelix/laravel-bigquery](https://github.com/schulzefelix/laravel-bigquery) and enhanced with support for the latest versions of Laravel and PHP. If the version you want to use is already supported in the original repository, it's recommended to use the original version.

Using this package you can easily interact with the Google BigQuery API.

Install
-------

[](#install)

This package can be installed through Composer.

```
composer require hankz/laravel-google-bigquery
```

Optionally, you can publish the config file of this package with this command:

```
php artisan vendor:publish --provider="SchulzeFelix\BigQuery\BigQueryServiceProvider"
```

The following config file will be published in `config/bigquery.php`

```
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 required by the Google Cloud client libraries to authenticate API requests.
    |
    */

    'project_id' => env('GOOGLE_CLOUD_PROJECT_ID'),

    /*
    |--------------------------------------------------------------------------
    | Client Auth Cache Store
    |--------------------------------------------------------------------------
    |
    | This option controls the auth cache connection that gets used.
    |
    | Supported: "apc", "array", "database", "file", "memcached", "redis"
    |
    */

    'auth_cache_store' => 'file',

    /*
    |--------------------------------------------------------------------------
    | Client Options
    |--------------------------------------------------------------------------
    |
    | Here you may configure additional parameters that
    | the underlying BigQueryClient will use.
    |
    | Optional parameters: "authCacheOptions", "authHttpHandler", "httpHandler", "retries", "scopes", "returnInt64AsObject"
    */

    'client_options' => [
        'retries' => 3, // Default
    ],

    /*
    |--------------------------------------------------------------------------
    | Dataset location
    |--------------------------------------------------------------------------
    |
    | Specify the dataset location.
    |
    | Supported values can be found at https://cloud.google.com/bigquery/docs/locations
    |
    */

    'location' => '',
];
```

Usage
-----

[](#usage)

This package just initialize the BigQuery connection, you can use every method like in Google's API. You can use the provided Facade or retrieve the it from the IoC Container.

```
BigQuery::apiMethod();

app('bigquery')->apiMethod();
```

Here are two basic example to create a dataset and check for existence of a table

### Create Dataset

[](#create-dataset)

```
$dataset = BigQuery::createDataset('myNewDataSet');
```

### Check Existence Of A Table

[](#check-existence-of-a-table)

```
BigQuery::dataset(myNewDataSet)->table('aTable')->exists());
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ vendor/bin/phpunit
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Felix Schulze](https://github.com/schulzefelix)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance55

Moderate activity, may be stable

Popularity15

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 67.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~487 days

Total

2

Last Release

298d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4468384?v=4)[hankz](/maintainers/hankz)[@hankz](https://github.com/hankz)

---

Top Contributors

[![schulzefelix](https://avatars.githubusercontent.com/u/8378750?v=4)](https://github.com/schulzefelix "schulzefelix (31 commits)")[![june1-hank](https://avatars.githubusercontent.com/u/158396566?v=4)](https://github.com/june1-hank "june1-hank (4 commits)")[![baminc](https://avatars.githubusercontent.com/u/954516?v=4)](https://github.com/baminc "baminc (3 commits)")[![hankz1108](https://avatars.githubusercontent.com/u/148752197?v=4)](https://github.com/hankz1108 "hankz1108 (2 commits)")[![marcroberts](https://avatars.githubusercontent.com/u/43874?v=4)](https://github.com/marcroberts "marcroberts (2 commits)")[![intrepidws](https://avatars.githubusercontent.com/u/125735?v=4)](https://github.com/intrepidws "intrepidws (1 commits)")[![dyaskur](https://avatars.githubusercontent.com/u/9539970?v=4)](https://github.com/dyaskur "dyaskur (1 commits)")[![babisp](https://avatars.githubusercontent.com/u/9862985?v=4)](https://github.com/babisp "babisp (1 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (1 commits)")

---

Tags

laravelgooglebigquery

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hankz-laravel-google-bigquery/health.svg)

```
[![Health](https://phpackages.com/badges/hankz-laravel-google-bigquery/health.svg)](https://phpackages.com/packages/hankz-laravel-google-bigquery)
```

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k54.9M11.6k](/packages/illuminate-database)[kreait/laravel-firebase

A Laravel package for the Firebase PHP Admin SDK

1.3k18.7M49](/packages/kreait-laravel-firebase)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8465.5M96](/packages/laravel-doctrine-orm)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.5M2](/packages/glushkovds-phpclickhouse-laravel)[prologuetech/big

Google BigQuery for Laravel

1694.2k](/packages/prologuetech-big)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
