Download the PHP package richan-fongdasen/firestore-laravel without Composer
On this page you can find all versions of the php package richan-fongdasen/firestore-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download richan-fongdasen/firestore-laravel
More information about richan-fongdasen/firestore-laravel
Files in richan-fongdasen/firestore-laravel
Package firestore-laravel
Short Description A Google Cloud Firestore driver for Laravel Cache and Session.
License MIT
Homepage https://github.com/richan-fongdasen/firestore-laravel
Informations about the package firestore-laravel
A Google Cloud Firestore driver for Laravel Cache and Session
This package allows you to use Google Cloud Firestore as a driver for Cache and Session store in Laravel application. This package is built on top of the official Google Cloud Firestore PHP client library.
[!WARNING]
This package is not yet compatible with Laravel Octane.
Requirements
- PHP 8.2 or higher
- Laravel 10.0 or higher
- PHP Extension:
grpc
- PHP Extension:
protobuf
- Google Cloud Firestore Credentials
Installation
You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
Configuration
Setting Up Firestore Authentication
Please see the Authentication guide for more information on authenticating your Google Cloud Firestore client.
Package Configuration
You can configure the package by setting the following environment variables in your .env
file.
Cache Store Configuration
In order to use Firestore as a cache store, you need to append the following configuration into the config/cache.php
file.
Session Driver Configuration
In order to use Firestore as a session store, you need to modify the SESSION_DRIVER
environment variable in your .env
file.
Usage
There is no special usage for this package. You can use the Cache and Session store as you normally do in Laravel.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Richan Fongdasen
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of firestore-laravel with dependencies
ext-grpc Version *
ext-protobuf Version *
google/cloud-firestore Version ^1.43.1
illuminate/cache Version ^10.0||^11.0
illuminate/contracts Version ^10.0||^11.0
illuminate/session Version ^10.0||^11.0
illuminate/support Version ^10.0||^11.0
spatie/laravel-package-tools Version ^1.16