Firestore wrapper for Laravel app running inside Google App Engine.
firevel/firestore is a Laravel package for firestore wrapper for laravel app running inside google app engine..
It currently has 7 GitHub stars and 20.088 downloads on Packagist (latest version 1.2.0).
Install it with composer require firevel/firestore.
Discover more Laravel packages by firevel
or browse all Laravel packages to compare alternatives.
Last updated
A lightweight wrapper around the official Cloud Firestore PHP client for Laravel and Firevel, compatible with Google App Engine Standard.
Create a Firestore project
If you don’t have one yet, follow the Cloud Firestore quick start.
Install the package
composer require firevel/firestore
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.
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,
];
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);
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).