Download the PHP package prologuetech/big without Composer
On this page you can find all versions of the php package prologuetech/big. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download prologuetech/big
More information about prologuetech/big
Files in prologuetech/big
Package big
Short Description Google BigQuery for Laravel
License MIT
Homepage https://github.com/prologuetech/laravel-big
Informations about the package big
Google BigQuery for Laravel
This package aims to wrap laravel functionality around Google's BigQuery.
Install
Via Composer
Setup
Publish our config file into your application:
You should have a config/prologue-big.php
file to configure defaults.
Laravel 5.4.x
Older versions of Laravel require you to add our big service provider to your application providers array in config/app.php
:
You now have access to a familiar laravel experience, enjoy!
Google Authentication
The Google SDK supports Application Default Credentials (ADC) and thus this package does as well. You may leave your auth_file
field inside of your config file null
to use ADC. Credentials fetcher is not currently supported but may be added in the future.
For more information see the adc docs.
How to use
Configuration
By default we use the following global config options with BigQuery.
Tables
When creating tables in BQ we automatically flip a Eloquent model schema for you. Let's cover an example of archiving data from our events table into BQ using laravel's chunk method.
That's it! You now have a replica of your events table in BigQuery, enjoy!
Queries
Instantiating will automatically setup a Google ServiceBuilder and give us direct access to through our internals via . However there are many helpers built into Big that make interacting with BigQuery a piece of cake (or a tasty carrot if you're into that kind of thing).
For example when running a query on BigQuery we must use the reload method in a loop to poll results. Big comes with a useful method so all you need to do is this:
When using we automatically poll BigQuery and return all results as a laravel collection object for you so you can enjoy your results as a refreshing cup of Laravel.
Change log
Please see CHANGELOG for more information on what has changed recently.
License
The MIT License (MIT). Please see License File for more information.
All versions of big with dependencies
illuminate/database Version ^5.4
illuminate/cache Version ^5.4
php Version ~7.0
google/cloud Version >=0.49 <=0.60