Download the PHP package ocramius/ocra-cached-view-resolver without Composer

On this page you can find all versions of the php package ocramius/ocra-cached-view-resolver. 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 ocra-cached-view-resolver

OcraCachedViewResolver

OcraCachedViewResolver is performance-oriented laminas/laminas-mvc Module that increases performance in your application by caching the process of resolving template names to template paths.

In laminas/laminas-mvc-skeleton, the process of resolving template paths causes a lot of stat calls (disk access). This module adds a cache layer to avoid that.

Latest Stable Version Latest Unstable Version Total Downloads Mutation testing badge

Installation

The recommended way to install ocramius/ocra-cached-view-resolver is through composer:

You can pick any laminas/laminas-cache-storage-implementation you want, as long as you provide one, and later configure it.

You can then enable the module in your config/application.config.php by adding 'OcraCachedViewResolver' to the 'modules' section.

Configuration

Default configurations are provided in config/ocra-cached-view-resolver.local.php.dist. You can copy it to your application's config/autoload directory and remove the .dist extension from the file name, then adjust its contents to your needs.

Note that you will need to provide your own laminas/laminas-cache adapter (pick one of your choice), and configure it as service to be referenced in your copy of config/ocra-cached-view-resolver.local.php.dist.


All versions of ocra-cached-view-resolver with dependencies

PHP Build Version
Package Version
Requires php Version ~8.1.0 || ~8.2.0
laminas/laminas-cache Version ^3.9.0
laminas/laminas-modulemanager Version ^2.14.0
laminas/laminas-mvc Version ^3.6.0
laminas/laminas-servicemanager Version ^3.20.0
laminas/laminas-view Version ^2.25.2
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 ocramius/ocra-cached-view-resolver contains the following files

Loading the files please wait ....