Download the PHP package php-solution/app-cache-bundle without Composer

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

AppCacheBundle

This bundle allows developer to use Redis as main cache provider on Symfony application.

Better Performance:

Redis Clients

You can specify Redis Client as service on Symfony DI.

As default new DI Reference will created via factory \PhpSolution\Utils\ClientFactory::createRedisClient() and set correct serializer option for \Redis.

Example of configuration: On app

Integration with SymfonyFrameworkBundle

Cache Spool

You can use Redis client service as SF cache pool provider

Example of app_cache bundle configuration: Example of FrameworkBundle configuration:

Cache providers

SymfonyFrameworkBundle allows you to cache:

Use Redis for validation mapper cache:

`

Use Redis for serializer mapper cache:

`

Swiftmailer Spool

You can use Redis as storage for spool swiftmailer messages.

AppCacheBundle configuration: SwiftmailerBundle configuration: You can customize spool service: `

Sessions Handler

You can use Redis as storage for session. Bundle includes SessionHandle, on DI 'app_cache.cacheable.session_handler' which injects \Redis client and stores sessions on \Redis.

Example of AppCacheBundle configuration: Example of FrameworkBundle configuration: You can customize Session Handler: `

Doctrine Cache Providers

You can specify services as Doctrine cache providers. Example of configurations: `

Correct Doctrine Cache Driver configuration

Correct configuration for doctrine: `

Doctrine Cache Driver configuration (ONLY FOR BASIC USAGE!!!)

This Bundle allows you to specify cache provider for:

This functionality works like on SncRedisBundle and assign Doctrine cache provider automatically, but use only alias for cache provider, not creates separate provider.

Example of configuration: Bundle Extension create new alias for services (patter name:doctrine.orm.%s_%s`) using as cache_driver.

For example doctrine.orm.default_metadata_cache - service name for metadata_cache for default entity manager.

Use this feature only for basic configuration of Doctrine, because:

Twig cache

Twig use Filesystem cache as provider for cache templates. You must use Filesystem cache (not Redis and other provider) and for best performance please configure PHP opcache.

Additional info about Twig cache on link

Full Default Configuration

`

Working with not prod environments

Test environment

The test environment must be the same as production environment. Therefore, for test environment, it is recommended to clean the cache before starting the test cases.

Cleaning cache with listeners. phpunit.xml example:

`

Dev environment

For dev environment, it is not recommended to use caching


All versions of app-cache-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
doctrine/cache Version >=1.0
ext-redis Version >=3.0
symfony/config Version >=3.3
symfony/dependency-injection Version >=3.3
symfony/framework-bundle Version >=3.3
symfony/http-kernel Version >=3.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 php-solution/app-cache-bundle contains the following files

Loading the files please wait ....