PHPackages                             schulzefelix/laravel-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. schulzefelix/laravel-bigquery

ActiveLibrary

schulzefelix/laravel-bigquery
=============================

1.7.0(4y ago)35306.4k↓11.6%21[1 PRs](https://github.com/schulzefelix/laravel-bigquery/pulls)MITPHPPHP ^8.0.2

Since Jul 31Pushed 2y ago3 watchersCompare

[ Source](https://github.com/schulzefelix/laravel-bigquery)[ Packagist](https://packagist.org/packages/schulzefelix/laravel-bigquery)[ Docs](https://github.com/schulzefelix/laravel-bigquery)[ RSS](/packages/schulzefelix-laravel-bigquery/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (16)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)

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

Install
-------

[](#install)

This package can be installed through Composer.

```
composer require schulzefelix/laravel-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

45

—

FairBetter than 93% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity47

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 77.5% 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 ~128 days

Total

14

Last Release

1542d ago

Major Versions

0.1.0 → 1.0.02017-10-06

PHP version history (8 changes)0.0.1PHP ^7.0

1.1.0PHP &gt;=7.0.0

1.2.0PHP ^7.2

1.3.0PHP ^7.2.5

1.4.0PHP ^7.3

1.4.1PHP ^7.3|^8

1.5.0PHP ^7.3|^8.0

1.7.0PHP ^8.0.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/b65a1fec031c9f386c149fd4602ae2a2f92ccb77e363eda4012e70f5c6513d8a?d=identicon)[schulzefelix](/maintainers/schulzefelix)

---

Top Contributors

[![schulzefelix](https://avatars.githubusercontent.com/u/8378750?v=4)](https://github.com/schulzefelix "schulzefelix (31 commits)")[![baminc](https://avatars.githubusercontent.com/u/954516?v=4)](https://github.com/baminc "baminc (3 commits)")[![marcroberts](https://avatars.githubusercontent.com/u/43874?v=4)](https://github.com/marcroberts "marcroberts (2 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (1 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)")

---

Tags

google-cloudlaravellaravel-bigqueryphpphp7laravel

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[kreait/laravel-firebase

A Laravel package for the Firebase PHP Admin SDK

1.3k16.5M42](/packages/kreait-laravel-firebase)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8425.3M87](/packages/laravel-doctrine-orm)[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.2k26](/packages/slowlyo-owl-admin)

PHPackages © 2026

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