Download the PHP package cache/adapter-bundle without Composer

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

PHP Cache AdapterBundle

CI Latest Stable Version

AdapterBundle creates PSR-6 cache services from Symfony configuration.

Version 2.1 requires PHP 8.2, psr/cache 3, psr/log 3, and Symfony 6.4, 7, or 8. It supports PHP Cache 2 and 3 adapters.

Installation

Install the bundle and the adapter package your app needs:

Symfony Flex may register the bundle automatically. Otherwise, add it to config/bundles.php:

Configuration

This example registers cache.provider.default and aliases a lazy fallback wrapper as cache, php_cache, and app.cache. If creating the default provider throws, the wrapper creates cache.provider.void instead. A full service ID such as @cache.provider.void is also accepted.

AdapterBundle matches a bare value against configured provider names first. Provider names that contain dots, such as warm.tier, therefore work without a service prefix.

The bundle follows service aliases before creating the wrapper. It rejects the default provider and aliases that lead back to it.

It also rejects cache, php_cache, cache.provider.default_fallback, and circular alias chains.

fallback_provider handles failures that occur while Symfony constructs the default provider. For failures raised later by cache operations, configure a Chain provider with skip_on_failure: true and place a Void provider last.

Version 2.1 provides APCu, Array, Chain, Filesystem, Memcache, Memcached, MongoDB, Namespaced, Predis, Prefixed, Redis, and Void factories for PHP Cache 2 and 3.

Applications can use a custom service that implements AdapterFactoryInterface as a provider factory. AdapterBundle validates the service after Symfony merges all extension definitions, so another app bundle can define it.

Memcached driver_options override the pool defaults. This configuration keeps the default server and uses the ASCII protocol:

namespace and pool_namespace must not be empty. Redis DSNs support both password-only authentication and ACL credentials such as redis://alice:[email protected]:6379/0. Percent-encode reserved characters in usernames and passwords.

Read the complete AdapterBundle documentation for every factory and option.

Using version 3 adapters

AdapterBundle 2.1 supports PHP Cache 3 adapters while it remains compatible with PHP Cache 2 adapters.

PHP Cache 3 stores a generation snapshot with each tagged item and a generation marker for each tag. Version 2 and 3 workers cannot safely share tagged cache storage.

Stop or drain all workers, clear each shared cache, and then deploy AdapterBundle 2.1 with version 3 adapters. Follow the same sequence before a rollback.

Upgrading from version 1

Version 2 removes the APC factory and every Doctrine-backed factory. Use cache.factory.apcu, a supported native adapter, or an external PSR-6 service.

The Namespaced and Prefixed factories preserve native tag support. The Array, Memcached, Predis, and Redis pool_namespace options preserve it too. Code that constructs those decorators directly should use their create() factories when tagged items are required.

Replace MongoDB's namespace option with database and collection. Replace Predis's schema option with scheme.

PHP Cache 2 changes APCu payloads, Redis and Predis tag indexes, namespaced tag indexes, and hierarchy storage paths. Do not mix version 1 and version 2 workers on an affected store.

Clear a namespaced store when a namespace contains bytes outside [A-Za-z0-9_.] or lowercase _x. Also clear it when a public key contains |, !, or lowercase _x.

Clear namespaced stores containing tagged or hierarchy items. Clear a prefixed store when its prefix contains bytes outside [A-Za-z0-9_.] or lowercase _x.

Stop or drain old workers, clear each affected store, and then deploy version 2. Follow the same sequence before rolling back.

Contributing

Run composer quality before opening a pull request. Report problems on the GitHub issue tracker.


All versions of adapter-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
cache/array-adapter Version ^2.0 || ^3.0
cache/namespaced-cache Version ^2.0
psr/cache Version ^3.0
psr/log Version ^3.0
symfony/framework-bundle Version ^6.4 || ^7.0 || ^8.0
symfony/options-resolver Version ^6.4 || ^7.0 || ^8.0
symfony/yaml Version ^6.4 || ^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 cache/adapter-bundle contains the following files

Loading the files please wait ...