Download the PHP package firevel/firestore-session-driver without Composer
On this page you can find all versions of the php package firevel/firestore-session-driver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download firevel/firestore-session-driver
More information about firevel/firestore-session-driver
Files in firevel/firestore-session-driver
Package firestore-session-driver
Short Description Firestore session driver for Laravel app running inside Google App Engine.
License MIT
Informations about the package firestore-session-driver
Laravel – Firestore Session Driver
A Firestore-backed session driver for Laravel, designed to run smoothly on Google App Engine (Standard environment).
Installation
Configuration
1) Set the session driver
App Engine (app.yaml):
Local development (.env):
Firestore credentials on App Engine Standard are picked up via Application Default Credentials. For local development, set
GOOGLE_APPLICATION_CREDENTIALSif needed.
2) (Optional) Session lifetime
Configure the session lifetime as usual in config/session.php or via .env:
Garbage collection & scale
Firestore session cleanup happens via Laravel’s session lottery. On very high-traffic apps this can be a bottleneck. You can tune or offload it:
-
Adjust the lottery in
config/session.php(note the correct path/key): -
Batch size: control how many expired sessions are removed per GC pass:
- Heavy load / HA setups: consider moving GC out of request flow. Run cleanup on a schedule (cron/Scheduler) and set a very low lottery, or temporarily switch to the
cookiedriver if GC becomes a hotspot.
In extreme cases, run garbage collection from a scheduled job/cron and reduce the in-request lottery to near zero.
Limitations
- Review Firestore’s quotas and limits before deploying high-throughput workloads: https://cloud.google.com/firestore/quotas