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

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:

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

By default, Stash will use the best-fit driver for your environment, starting with Memcache, through Redis and APCu, and falling back on the File store.

Configuration

All drivers have default configuration to allow them to work out of the box, however Stash provides the ability to implement your own configuration loader so that you can control drivers and settings on a per-namespace basis

Implement the following interface however your system requires; all nullable methods can just return null to use default configuration:

Then tell Stash about your configuration provider:

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.3.8
decodelabs/atlas Version ^0.12.3
decodelabs/coercion Version ^0.3
decodelabs/dictum Version ^0.6.9
decodelabs/exceptional Version ^0.5.3
decodelabs/glitch-support Version ^0.5.1
decodelabs/veneer Version ^0.12.3
psr/cache Version ^3.0
psr/simple-cache Version ^3.0
nesbot/carbon Version ^2|^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 ....