Download the PHP package thecodingmachine/stash-universal-module without Composer

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

Build Status Coverage Status

Stash universal module

This package integrates Stash (the PHP PSR-6 compatible cache library) in any container-interop/service-provider compatible framework/container.

Installation

Once installed, you need to register the TheCodingMachine\StashServiceProvider into your container.

If your container supports thecodingmachine/discovery integration, you have nothing to do. Otherwise, refer to your framework or container's documentation to learn how to register service providers.

Introduction

This service provider is meant to create a PSR-6 cache pool Psr\Cache\CacheItemPoolInterface instance.

Out of the box, the instance should be usable with sensible defaults. We tried to keep the defaults usable for most of the developer, while still providing best performances for the server.

Usage

Default values

By default:

Configuration

Important: This service provider accepts an optional parameter in the constructor: a "suffix" that can be used if you want many different instances.

When this service provider looks for a service, it will first look for the service prefixed with the package name, then for the service directly. So if this documentation states that the stash.apc.options entry is used, the service provider will first look into thecodingmachine.stash-universal-module.stash.apc.options and then into stash.apc.options. This allows you to keep your container clean (with only one stash.apc.options entry), and in case there are several service providers using that stash.apc.options entry and you want to pass different values, you can still edit thecodingmachine.stash-universal-module.stash.apc.options for this service provider only.

Expected values / services

This service provider expects the following configuration / services to be available:

Name Compulsory Description
stash.apc.options (or stash.[suffix].apc.options) no The set of options passed to the APC driver. Defaults to [].
stash.filesystem.options (or stash.[suffix].filesystem.options) no The set of options passed to the Filesystem driver. Defaults to [].
stash.memcache.options (or stash.[suffix].memcache.options) no (unless you want to use the Memcache driver) The set of options passed to the Memcache driver.
stash.redis.options (or stash.[suffix].redis.options) no (unless you want to use the Redis driver) The set of options passed to the Redis driver.
stash.sqlite.options (or stash.[suffix].sqlite.options) no The set of options passed to the SQLite driver. Defaults to [].

Provided services

This service provider provides the following services:

Service name Description
CacheItemPoolInterface::class (or CacheItemPoolInterface::class.[suffix]) An alias to Pool::class.
Pool::class (or Pool::class.[suffix]) The default Stash pool. Uses the DriverInterface::class default driver.
PoolInterface::class (or PoolInterface::class.[suffix]) An alias to Pool::class.
DriverInterface::class (or DriverInterface::class.[suffix]) The default Stash driver to be used. By default, it is a Composite driver (see below)
Composite::class (or Composite::class.[suffix]) The Composite driver. It composes several drivers, specified in the 'stash.composite.options' list
stash.composite.options (or stash.[suffix].composite.options) The options that will be passed to the composite driver. By default, this is a list of drivers, with the Ephemeral driver being the first one, and then APC (if available) or FileSystem (if APC is not available)
Apc::class (or Apc::class.[suffix]) The APC driver.
FileSystem::class (or FileSystem::class.[suffix]) The Filesystem driver.
Ephemeral::class (or Ephemeral::class.[suffix]) The Ephemeral driver.
BlackHole::class (or BlackHole::class.[suffix]) The BlackHole driver.
Memcache::class (or Memcache::class.[suffix]) The Memcache driver.
Redis::class (or Redis::class.[suffix]) The Redis driver.
Sqlite::class (or Sqlite::class.[suffix]) The Sqlite driver.

Extended services

This service provider does not extend any service.


All versions of stash-universal-module with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
container-interop/service-provider Version ^0.4
thecodingmachine/common-factories Version ^0.4
tedivm/stash Version ~0.14.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 thecodingmachine/stash-universal-module contains the following files

Loading the files please wait ....