PHPackages                             socalnick/scn-esi-widget - 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. [Caching](/categories/caching)
4. /
5. socalnick/scn-esi-widget

ActiveLibrary[Caching](/categories/caching)

socalnick/scn-esi-widget
========================

Enables ZF2 apps to output ESI tags for a widgetized and highly cacheable application.

1.1.1(12y ago)309.0k7[1 issues](https://github.com/SocalNick/ScnEsiWidget/issues)[1 PRs](https://github.com/SocalNick/ScnEsiWidget/pulls)BSD-3-ClausePHPPHP &gt;=5.3.3

Since Oct 20Pushed 12y ago2 watchersCompare

[ Source](https://github.com/SocalNick/ScnEsiWidget)[ Packagist](https://packagist.org/packages/socalnick/scn-esi-widget)[ Docs](https://github.com/SocalNick/ScnEsiWidget)[ RSS](/packages/socalnick-scn-esi-widget/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (2)Versions (5)Used By (0)

ScnEsiWidget
============

[](#scnesiwidget)

Enables ZF2 apps to output ESI tags for a widgetized and highly cacheable application.

[![Build Status](https://camo.githubusercontent.com/df11068371cc56821ec24a4a40fa8202a618fc74e9529c0491dda295250a4aff/68747470733a2f2f7472617669732d63692e6f72672f536f63616c4e69636b2f53636e4573695769646765742e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/SocalNick/ScnEsiWidget)

Requirements
------------

[](#requirements)

- [Zend Framework 2](https://github.com/zendframework/zf2) (2.\*)

Features
--------

[](#features)

- ESI Widgets are added to an action via EsiWidget Controller Plugin
- EsiStrategy detects Surrogate Capability to choose EsiRenderer
- EsiRenderer renders child view models as ESI tags
- Falls back to PHPRenderer w/o Surrogate Capability i.e. works in dev!

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

[](#installation)

It is recommended to add this module to your Zend Framework 2 application using Composer. After cloning [ZendSkeletonApplication](https://github.com/zendframework/ZendSkeletonApplication), add "socalnick/scn-esi-widget" to list of requirements, then run php composer.phar install/update. Your composer.json should look something like this:

```
{
    "name": "zendframework/skeleton-application",
    "description": "Skeleton Application for ZF2",
    "license": "BSD-3-Clause",
    "keywords": [
        "framework",
        "zf2"
    ],
    "homepage": "http://framework.zend.com/",
    "require": {
        "php": ">=5.3.3",
        "zendframework/zendframework": "2.*",
        "socalnick/scn-esi-widget": "1.*"
    }
}

```

Next add the required modules to config/application.config.php:

```
