Download the PHP package stadline/execution-cache-bundle without Composer

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

Installation

This bundle provides a caching mechanism at application level. It's very similar to HTTP caching at reverse-proxy level, but execution cache is done later. This way, the request has already been checked by the security layer but we can running the controller twice if the result should be the same.

The cache storage will provide different result based on Request headers and body. If the exact same request is sent twice and the response is cached, the controller is not run and the response is sent.

Step 1: Install the AdapterBundle

This bundle uses a PSR-6 cache implementation provided by https://github.com/php-cache/adapter-bundle. It can be Memcached, Redis, Filesystem, Void or even your own implementation. The choice is yours!

Please check their docs before installing this bundle.

Step 2: Install the Bundle

Open a command console, go to your project directory and execute the following command to download the latest stable version of this bundle:

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.

Step 3: Enable the Bundle

Then, enable the bundle by adding the following line in the app/AppKernel.php file of your project:

Step 4: Add the ExecutionCache annotation

To enable the cache, you must add an annotation on the controller method you want to be cached.

You can set a cache TTL if you want, but it's optional.

That's all!

Configuration

You can override the configuration easily

You can set the key prefix and the default TTL.

The pool_adapter can be any CachePool implementation, check http://www.php-cache.com/en/latest/symfony/adapter-bundle/#configuration

For example, if you defined a provider called you can use (or just if it's the default provider)


All versions of execution-cache-bundle with dependencies

PHP Build Version
Package Version
No informations.
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 stadline/execution-cache-bundle contains the following files

Loading the files please wait ....