Git Product home page Git Product logo

ddev-google-bigquery's Introduction

ddev-google-bigquery

This is a very simple example how to access Google Cloud BigQuery with help of its PHP-API by google/cloud-bigquery package incl. GRPC PHP Extension in a DDev Container.

Installation

Create or update a Service-Account in Google Cloud Console. Add BigQuery Administrator rights to user. Use existing or create new Service-Key-File [project-name]-[hash].json Add this file to project root of this project and rename it to GoogleCredentials.json. To be more safe you should move that file to another location and update path in .ddev/docker-compose.environment.yaml

ddev start

For Developers

I have added a Dockerfile to .ddev/web-build/ which uses the original image of Drud and added the Pecl Extension grpc which was needed by all these Google Packages to retrieve data by stream. Yes, it will need some time, if you start DDev container the first time.

To prevent overriding the original www.conf file of DDev Container I have added some special DPKG options to apt-get in Dockerfile.

In .ddev/php you will find the file to activate the GRPC PHP Extension.

Please keep PHP Versions in Sync. If you modify PHP Version in config.yaml of DDev, you also habe to update thie PHP Version in .ddev/web-build/Dockerfile

ddev-google-bigquery's People

Contributors

froemken avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.