{"id":15068571,"url":"https://github.com/schulzefelix/laravel-bigquery","last_synced_at":"2025-04-13T05:24:58.470Z","repository":{"id":41128643,"uuid":"98615788","full_name":"schulzefelix/laravel-bigquery","owner":"schulzefelix","description":"A Laravel package to access Google BigQuery","archived":false,"fork":false,"pushed_at":"2024-05-09T02:40:28.000Z","size":37,"stargazers_count":33,"open_issues_count":2,"forks_count":20,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T09:39:45.546Z","etag":null,"topics":["google-cloud","laravel","laravel-bigquery","php","php7"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/schulzefelix.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-28T06:21:53.000Z","updated_at":"2024-02-22T10:16:16.000Z","dependencies_parsed_at":"2024-06-20T19:24:47.566Z","dependency_job_id":null,"html_url":"https://github.com/schulzefelix/laravel-bigquery","commit_stats":{"total_commits":36,"total_committers":10,"mean_commits":3.6,"dds":0.5555555555555556,"last_synced_commit":"8ef4fda8818c416ed980c88b590d1a6bcfc511df"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schulzefelix%2Flaravel-bigquery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schulzefelix%2Flaravel-bigquery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schulzefelix%2Flaravel-bigquery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schulzefelix%2Flaravel-bigquery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schulzefelix","download_url":"https://codeload.github.com/schulzefelix/laravel-bigquery/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248667047,"owners_count":21142361,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["google-cloud","laravel","laravel-bigquery","php","php7"],"created_at":"2024-09-25T01:38:23.819Z","updated_at":"2025-04-13T05:24:58.429Z","avatar_url":"https://github.com/schulzefelix.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel BigQuery\n\n[![Latest Version](https://img.shields.io/github/release/schulzefelix/laravel-bigquery.svg?style=flat-square)](https://github.com/schulzefelix/laravel-bigquery/releases)\n[![Software License][ico-license]](LICENSE.md)\n[![Build Status][ico-travis]][link-travis]\n[![Quality Score][ico-code-quality]][link-code-quality]\n[![StyleCI](https://styleci.io/repos/98615788/shield)](https://styleci.io/repos/98615788)\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Total Downloads][ico-downloads]][link-downloads]\n\nUsing this package you can easily interact with the Google BigQuery API.\n\n## Install\n\nThis package can be installed through Composer.\n\n``` bash\ncomposer require schulzefelix/laravel-bigquery\n```\n\nOptionally, you can publish the config file of this package with this command:\n\n``` bash\nphp artisan vendor:publish --provider=\"SchulzeFelix\\BigQuery\\BigQueryServiceProvider\"\n```\n\nThe following config file will be published in `config/bigquery.php`\n\n```php\nreturn [\n \n    /*\n    |--------------------------------------------------------------------------\n    | Application Credentials\n    |--------------------------------------------------------------------------\n    |\n    | Path to the Service Account Credentials JSON File\n    |\n    | https://googlecloudplatform.github.io/google-cloud-php/#/docs/google-cloud/v0.35.0/guides/authentication\n    |\n    */\n \n    'application_credentials' =\u003e env('GOOGLE_CLOUD_APPLICATION_CREDENTIALS'),\n\n\n    /*\n    | OPTIONAL:\n    | Use keyFile to use a json config from the current environment.\n    | For example secrets in laravel vapor\n    |\n    | https://docs.vapor.build/1.0/projects/environments.html#secrets\n    */\n    //'keyFile' =\u003e json_decode(trim(env('GOOGLE_CLOUD_APPLICATION_CREDENTIALS')), true),\n \n    /*\n    |--------------------------------------------------------------------------\n    | Project ID\n    |--------------------------------------------------------------------------\n    |\n    | The Project Name is a user-friendly name,\n    | while the Project ID is required by the Google Cloud client libraries to authenticate API requests.\n    |\n    */\n \n    'project_id' =\u003e env('GOOGLE_CLOUD_PROJECT_ID'),\n \n    /*\n    |--------------------------------------------------------------------------\n    | Client Auth Cache Store\n    |--------------------------------------------------------------------------\n    |\n    | This option controls the auth cache connection that gets used.\n    |\n    | Supported: \"apc\", \"array\", \"database\", \"file\", \"memcached\", \"redis\"\n    |\n    */\n \n    'auth_cache_store' =\u003e 'file',\n \n    /*\n    |--------------------------------------------------------------------------\n    | Client Options\n    |--------------------------------------------------------------------------\n    |\n    | Here you may configure additional parameters that\n    | the underlying BigQueryClient will use.\n    |\n    | Optional parameters: \"authCacheOptions\", \"authHttpHandler\", \"httpHandler\", \"retries\", \"scopes\", \"returnInt64AsObject\"\n    */\n \n    'client_options' =\u003e [\n        'retries' =\u003e 3, // Default\n    ],\n    \n    /*\n    |--------------------------------------------------------------------------\n    | Dataset location\n    |--------------------------------------------------------------------------\n    |\n    | Specify the dataset location.\n    |\n    | Supported values can be found at https://cloud.google.com/bigquery/docs/locations\n    |\n    */\n\n    'location' =\u003e '',\n];\n```\n\n\n\n\n## Usage\n\nThis package just initialize the BigQuery connection, you can use every method like in Google's API.\nYou can use the provided Facade or retrieve the it from the IoC Container.\n```php\nBigQuery::apiMethod();\n \napp('bigquery')-\u003eapiMethod();\n```\n\n\nHere are two basic example to create a dataset and check for existence of a table\n### Create Dataset\n\n```php\n$dataset = BigQuery::createDataset('myNewDataSet');\n```\n\n### Check Existence Of A Table\n\n```php\nBigQuery::dataset(myNewDataSet)-\u003etable('aTable')-\u003eexists());\n```\n\n## Change log\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Testing\n\n``` bash\n$ vendor/bin/phpunit\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email github@schulze.co instead of using the issue tracker.\n\n## Credits\n\n- [Felix Schulze][link-author]\n- [All Contributors][link-contributors]\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n[ico-version]: https://img.shields.io/packagist/v/schulzefelix/laravel-bigquery.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[ico-travis]: https://img.shields.io/travis/schulzefelix/laravel-bigquery/master.svg?style=flat-square\n[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/schulzefelix/laravel-bigquery.svg?style=flat-square\n[ico-code-quality]: https://scrutinizer-ci.com/g/schulzefelix/laravel-bigquery/badges/quality-score.png?b=master\n[ico-downloads]: https://img.shields.io/packagist/dt/schulzefelix/laravel-bigquery.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/schulzefelix/laravel-bigquery\n[link-travis]: https://travis-ci.org/schulzefelix/laravel-bigquery\n[link-scrutinizer]: https://scrutinizer-ci.com/g/schulzefelix/laravel-bigquery/code-structure\n[link-code-quality]: https://scrutinizer-ci.com/g/schulzefelix/laravel-bigquery\n[link-downloads]: https://packagist.org/packages/schulzefelix/laravel-bigquery\n[link-author]: https://github.com/schulzefelix\n[link-contributors]: ../../contributors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschulzefelix%2Flaravel-bigquery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschulzefelix%2Flaravel-bigquery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschulzefelix%2Flaravel-bigquery/lists"}