PHPackages                             ocramius/ocra-cached-view-resolver - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. ocramius/ocra-cached-view-resolver

AbandonedArchivedLibrary

ocramius/ocra-cached-view-resolver
==================================

Cached view template path resolver to speed up the ZF2 view layer by avoiding stat calls

6.3.0(3y ago)59108.5k↑11.1%8[7 PRs](https://github.com/Ocramius/OcraCachedViewResolver/pulls)MITPHPPHP ~8.1.0 || ~8.2.0

Since Nov 30Pushed 1y ago4 watchersCompare

[ Source](https://github.com/Ocramius/OcraCachedViewResolver)[ Packagist](https://packagist.org/packages/ocramius/ocra-cached-view-resolver)[ Docs](https://github.com/Ocramius/OcraCachedViewResolver)[ GitHub Sponsors](https://github.com/Ocramius)[ RSS](/packages/ocramius-ocra-cached-view-resolver/feed)WikiDiscussions 6.4.x Synced 1mo ago

READMEChangelog (10)Dependencies (10)Versions (37)Used By (0)

OcraCachedViewResolver
======================

[](#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`](https://github.com/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](https://camo.githubusercontent.com/2b6351fe4a32cae72c6daf9c5d6e7699797e8940feb45b54b5a4a492e2b0773a/68747470733a2f2f706f7365722e707567782e6f72672f6f6372616d6975732f6f6372612d6361636865642d766965772d7265736f6c7665722f762f737461626c652e706e67)](https://packagist.org/packages/ocramius/ocra-cached-view-resolver)[![Latest Unstable Version](https://camo.githubusercontent.com/865383b8603f917df30d01866dfc6efc676452e2a5e722107049074b56b03f4c/68747470733a2f2f706f7365722e707567782e6f72672f6f6372616d6975732f6f6372612d6361636865642d766965772d7265736f6c7665722f762f756e737461626c652e706e67)](https://packagist.org/packages/ocramius/ocra-cached-view-resolver)[![Total Downloads](https://camo.githubusercontent.com/8fd17c13e149880189f7b9533b4ea651784e286f8f5b9890935667263294c12e/68747470733a2f2f706f7365722e707567782e6f72672f6f6372616d6975732f6f6372612d6361636865642d766965772d7265736f6c7665722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/ocramius/ocra-cached-view-resolver)[![Mutation testing badge](https://camo.githubusercontent.com/dba3d4537fe1b5d51042ddcdb55f958b4918328a4a9031ba80e8a5ee9075df86/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d2532464f6372616d6975732532464f637261436163686564566965775265736f6c766572253246362e302e78)](https://dashboard.stryker-mutator.io/reports/github.com/Ocramius/OcraCachedViewResolver/6.0.x)

Installation
------------

[](#installation)

The recommended way to install `ocramius/ocra-cached-view-resolver` is through [composer](http://getcomposer.org/):

```
php composer.phar require \
  ocramius/ocra-cached-view-resolver \
  laminas/laminas-cache-storage-adapter-filesystem
```

You can pick any [`laminas/laminas-cache-storage-implementation`](https://packagist.org/providers/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
-------------

[](#configuration)

Default configurations are provided in [`config/ocra-cached-view-resolver.local.php.dist`](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`.

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity46

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity87

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~141 days

Recently: every ~83 days

Total

29

Last Release

964d ago

Major Versions

1.1.0 → 2.0.02014-05-11

2.0.0 → 3.0.02014-08-06

3.0.3 → 4.0.02016-06-04

4.1.0 → 5.0.02021-09-19

5.2.x-dev → 6.0.02022-01-12

PHP version history (8 changes)0.1.0PHP &gt;=5.3

2.0.0PHP ~5.5

3.0.2PHP ~5.5|~7.0

4.0.0PHP ~7.0

5.0.0PHP ^7.4.7 || ~8.0.0

6.0.0PHP ^7.4.7 || ~8.0.0 || ~8.1.0

6.2.0PHP ~8.1.0

6.3.0PHP ~8.1.0 || ~8.2.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/fd0445bc21fa116c259b5889377b90cbd8a34d49357321f76a74f6d2c2ae6b0c?d=identicon)[Ocramius](/maintainers/Ocramius)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (359 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (354 commits)")[![Ocramius](https://avatars.githubusercontent.com/u/154256?v=4)](https://github.com/Ocramius "Ocramius (290 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (75 commits)")[![thomasvargiu](https://avatars.githubusercontent.com/u/732012?v=4)](https://github.com/thomasvargiu "thomasvargiu (6 commits)")[![basz](https://avatars.githubusercontent.com/u/143068?v=4)](https://github.com/basz "basz (2 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (2 commits)")[![ThaDafinser](https://avatars.githubusercontent.com/u/533017?v=4)](https://github.com/ThaDafinser "ThaDafinser (2 commits)")[![mpalourdio](https://avatars.githubusercontent.com/u/5034671?v=4)](https://github.com/mpalourdio "mpalourdio (1 commits)")[![MichaelGooden](https://avatars.githubusercontent.com/u/1275012?v=4)](https://github.com/MichaelGooden "MichaelGooden (1 commits)")[![ojhaujjwal](https://avatars.githubusercontent.com/u/4995501?v=4)](https://github.com/ojhaujjwal "ojhaujjwal (1 commits)")

---

Tags

performanceZendFrameworkzf2zend framework 2

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ocramius-ocra-cached-view-resolver/health.svg)

```
[![Health](https://phpackages.com/badges/ocramius-ocra-cached-view-resolver/health.svg)](https://phpackages.com/packages/ocramius-ocra-cached-view-resolver)
```

###  Alternatives

[magento/community-edition

Magento 2 (Open Source)

12.1k52.1k10](/packages/magento-community-edition)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[maglnet/magl-markdown

Provides a ZF2 View Helper to render markdown syntax. It uses third-party libraries for the rendering and you can switch between different renderers.

22178.2k4](/packages/maglnet-magl-markdown)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
