LaravelPackages.net
Acme Inc.
Toggle sidebar
plexcellmedia/firestore

Firestore wrapper for Laravel app running inside Google App Engine.

74
0
1.0.3
About plexcellmedia/firestore

plexcellmedia/firestore is a Laravel package for firestore wrapper for laravel app running inside google app engine.. It currently has 0 GitHub stars and 74 downloads on Packagist (latest version 1.0.3). Install it with composer require plexcellmedia/firestore. Discover more Laravel packages by plexcellmedia or browse all Laravel packages to compare alternatives.

Last updated

Firevel - Firestore

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

Installation

  1. If you dont 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 are going to 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.

Star History Chart