Git Product home page Git Product logo

firestore's Introduction

Firevel - Firestore

Cloud Firestore library wrapper for Laravel and Firevel compatible with Google App Engine standard environment.

Installation

  1. If you don't have Firestore project set, check Cloud Firestore quick start
  2. Install package composer require firevel/firestore
  3. Create php.ini in your project directory (where app.yaml is stored) with content:
; enable the gRPC extension
extension=grpc.so

; Ref.: https://github.com/colopl/laravel-spanner/issues/12
grpc.enable_fork_support = 1

If you use library outside Google App Engine please check gRPC installation guide.

Usage

To access FirestoreClient simply use Firestore facade for example:

    $data = [
        'name' => 'Los Angeles',
        'state' => 'CA',
        'country' => 'USA'
    ];
    Firestore::collection('cities')->document('LA')->set($data);

Authentication

Inside Google App Engine Firestore should work without authentication. For usage outside App Engine check Authentication guide.

More

  1. Firestore official documentation.
  2. in-depth usage samples.

firestore's People

Contributors

sl0wik avatar

Stargazers

Rifki Aria Gumelar avatar  avatar Peter Fisk avatar Jesil Jose avatar Ulzii-Orshikh Sampilnorov avatar Kodjo Edem avatar Ahmet Helvacı avatar

Watchers

James Cloos avatar  avatar Jesil Jose 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.