Download the PHP package vasco-fund/symfony-firestore-cache-adapter without Composer

On this page you can find all versions of the php package vasco-fund/symfony-firestore-cache-adapter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package symfony-firestore-cache-adapter

Symfony Firestore Cache Adapter

Build Status Latest Stable Version

Production-ready Symfony Cache adapter for Google Cloud Firestore. Perfect for Cloud Run, App Engine, and other stateless GCP environments where filesystem cache is not persistent.

Features

Installation

Optional: Google Cloud SDK

By default, this adapter uses the Firestore REST API via Symfony HTTP Client, which works out of the box without any PHP extensions.

For better performance, you can optionally install the Google Cloud SDK (requires the grpc PHP extension):

⚠️ You will have to code you own client implementation to use the SDK.

Requirements

Configuration

The adapter supports two Firestore client implementations:

Planned improvements:

1. Basic Configuration (HTTP Client - Default)

Which Client Should I Use?

Feature HTTP Client (Default) Google Cloud SDK
Requirements None grpc PHP extension
Installation Works out of the box composer require google/cloud-firestore
Performance Good (~20-50ms latency) Better (~10-30ms latency)
Ease of Setup Very easy May require extension compilation
Best For Cloud Run, simple setups High-performance needs
Status Implemented Planned

Recommendation: Start with HTTP client. Only switch to SDK if you need the extra performance and can install the grpc extension.

Usage Examples

Basic Cache Operations

Environment Variables

For HTTP Client

Performance Considerations

Storage Costs

Latency

Best Practices

  1. Set appropriate TTL - Don't cache forever
  2. Monitor Firestore usage in GCP Console
  3. Use namespaces for multi-environment setups

Testing

Run Tests

With Coverage

With mutation Testing

Static Analysis

Code Style

Full Quality Assurance

Firestore Structure

Cache Items Collection

Security

If you discover any security-related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Roadmap

Alternatives

FAQ

Q: Why Firestore instead of Redis/Memcached? A: Firestore is serverless, scales automatically, and works perfectly with Cloud Run's ephemeral containers. No need to manage a separate cache cluster.

Q: What about costs? A: Firestore pricing is per storage size and per operation. With compression and proper TTL, costs are typically $5-20/month for small to medium applications.

Q: Can I use this in production? A: Yes! This adapter is production-ready with comprehensive tests, strict type checking (PHPStan level 9), and follows Symfony best practices.

Q: Does it work with Symfony 6? A: Yes, it supports Symfony 7.4 LTS and Symfony 8.x.

Q: Do I need the grpc extension? A: No! By default, the adapter uses Symfony HTTP Client which requires no extensions. You can optionally use the Google Cloud SDK for better performance if you have the grpc extension installed.

Q: Which client should I use? A: Start with the HTTP client (default) - it's easier to set up and works everywhere. Switch to the SDK client only if you need the extra performance and can install the grpc extension.


All versions of symfony-firestore-cache-adapter with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2|^8.3|^8.4
google/auth Version ^1.49
psr/cache Version ^3.0
psr/log Version ^3.0
symfony/cache Version ^7.0|^8.0
symfony/cache-contracts Version ^3.0
symfony/http-client Version ^7.0|^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package vasco-fund/symfony-firestore-cache-adapter contains the following files

Loading the files please wait ...