Download the PHP package decodelabs/stash without Composer

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

Stash

PHP from Packagist Latest Version Total Downloads GitHub Workflow Status PHPStan License

Cache storage system

Stash provides a PSR6 / PSR16 compatible cache system for PHP.


Installation

This package requires PHP 8.4 or higher.

Install via Composer:

Usage

Store and access data in a standardised volatile cache either via the PSR6 or PSR16 interface mechanisms. Caches are namespaced to allow for clean separation of data between usage domains.

Fetch

Use the fetch method to ensure a cache value is in place in one call:

Array Access

Array access methods provide quick offset access to cache data:

Object access

Object access works the same way as ArrayAccess, but with the PSR6 Cache Item object as the return:

Drivers

The following drivers are available out of the box:

Stash uses Archetype to load driver classes so additional drivers may be provided by implementing your own Resolver.

If no configuration is provided, Stash will attempt to use the best-fit driver for your environment, starting with Memcache, through Redis and APCu, and falling back on the File store.

Configuration

Stash can be configured by passing a DriverManager to the constructor (or in your DI container):

You may pass any number of DriverConfig, NamespaceConfig and FileStoreConfig objects to the DriverManager to configure the drivers and stores - the DriverManager will use the most relevant driver for each namespace.

If you're using Kingdom to manage your application, it is advisable to provide a DriverManager to your container and specify the drivers you want to use during initialization.

Custom Store methods

By default, newly loaded caches use a generic Store implementation, however if you require custom methods for domain-oriented data access, you can implement your own Store classes using a custom Archetype Resolver.

Licensing

Stash is licensed under the MIT License. See LICENSE for the full license text.


All versions of stash with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
decodelabs/archetype Version ^0.4
decodelabs/atlas Version ^0.14
decodelabs/coercion Version ^0.3.5
decodelabs/dictum Version ^0.7
decodelabs/exceptional Version ^0.6.3
decodelabs/kingdom Version ^0.2
decodelabs/monarch Version ^0.2
psr/cache Version ^3.0
psr/simple-cache Version ^3.0
nesbot/carbon Version ^3
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 decodelabs/stash contains the following files

Loading the files please wait ...