firevel/firestore

Firestore wrapper for Laravel app running inside Google App Engine.
21,237 6
Install
composer require firevel/firestore
Latest Version:1.2.0
PHP:^8.0
License:MIT
Last Updated:Aug 27, 2025
Links: GitHub  ·  Packagist
Maintainer: sl0wik

Firevel – Firestore

A lightweight wrapper around the official Cloud Firestore PHP client for Laravel and Firevel, compatible with Google App Engine Standard.

Installation

  1. Create a Firestore project
    If you don’t have one yet, follow the Cloud Firestore quick start.

  2. Install the package

    composer require firevel/firestore
    
  3. Enable gRPC extensions
    If you’re deploying to Google App Engine Standard, create a php.ini next to your app.yaml with:

    extension=grpc.so
    extension=protobuf.so
    

    Using the library outside of App Engine? See the gRPC installation guide and Installing the protobuf runtime library.

Tinker / PsySH note

If the pcntl extension is enabled, set usePcntl to false in your .psysh.php to avoid gRPC calls hanging in Tinker:

<?php

return [
    'usePcntl' => false,
];

Usage

Use the Firestore facade to access the client:

use Firevel\Firestore\Facades\Firestore;

$data = [
    'name'    => 'Los Angeles',
    'state'   => 'CA',
    'country' => 'USA',
];

Firestore::collection('cities')->document('LA')->set($data);

Authentication

On Google App Engine Standard, Firestore works without additional credentials.
For local development or other environments, follow the official Authentication guide (e.g., set GOOGLE_APPLICATION_CREDENTIALS).

Resources

Related Packages

firevel/firequent

Limited implementation of Eloquent based on Firestore.

7,142 26
firevel/stackdriver-log-channel

Laravel Stackdriver log channel for Google App Engine

22,053 6
beyounglabs/monolog-stackdriver

Stackdriver handler for Monolog (codeinternetapplications/monolog-stackdriver Fo...

2,179 0
ajessup/laravel

The Laravel Framework, lightly optimized for use with Google App Engine

267 22