Download the PHP package sitegeist/stalemate without Composer

On this page you can find all versions of the php package sitegeist/stalemate. 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 stalemate

Sitegeist.StaleMate

Varnish like cache for Neos.Flow with asynchronous updates that returns stale results in the meantime

This package implements cache that will return stale values for a configurable time while the cache values are updated asynchronously. Such behavior is well known from the varnish cache but not common in php.

The core concept is that the staleMateCache gets an identifier and closure for generating the required information if it cannot be found in the cache. The closure is called immediately if no cached result is found. If a result is found the cached result is returned.

In case the cached item is older than the intended lifetime the stale item is still returned immediately but the closure is scheduled for evaluating during the shutdown of the flow application and thus after the response has been sent to the user.

Authors & Sponsors

The development and the public-releases of this package is generously sponsored by our employer https://www.sitegeist.de.

Usage

The StaleMate cache is injected from flow.

The cache is then called via the resolve method with an identifier and aclosure. Please note that the closure cannot have arguments but instead may use variables from the context the method is called from.

Installation

Sitegeist.StaleMate is available via packagist. Just run composer require sitegeist/stalemate to install it. We use semantic-versioning so every breaking change will increase the major-version number.

Comparison to Symfony Cache Contracts

The approach implemented here is somewhat similar to the symfony cache contracts but deviates in a specific way. Symfony Cache Contracts will roll a dice to upgrade cache entries before they expire to prevent mass invalidation and recomputation. Stalemate on the other hand will return the cached item and recompute the value after the response was sent to the user.

Contribution

We will gladly accept contributions. Please send us pull requests.


All versions of stalemate with dependencies

PHP Build Version
Package Version
Requires neos/flow Version ^7.3 || ^8.0 || dev-main || dev-master
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 sitegeist/stalemate contains the following files

Loading the files please wait ....