PHPackages                             netlogix/nxvarnish - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. netlogix/nxvarnish

ActiveTypo3-cms-extension[Utility &amp; Helpers](/categories/utility)

netlogix/nxvarnish
==================

Adds varnish integration to TYPO3

6.0.0(1y ago)242.8k↓58.9%1[5 PRs](https://github.com/netlogix/nxvarnish/pulls)MITPHPCI passing

Since Feb 14Pushed 3d ago2 watchersCompare

[ Source](https://github.com/netlogix/nxvarnish)[ Packagist](https://packagist.org/packages/netlogix/nxvarnish)[ RSS](/packages/netlogix-nxvarnish/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (5)Dependencies (6)Versions (16)Used By (0)

TYPO3 extension nxvarnish
=========================

[](#typo3-extension-nxvarnish)

[![stability-stable](https://camo.githubusercontent.com/e6f427d32b746f81756ff5dcc5ffd5a3e1e51c07ac6c9160669f4dcd01e89935/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73746162696c6974792d737461626c652d3333626266662e737667)](https://github.com/netlogix/nxvarnish)[![TYPO3 V13](https://camo.githubusercontent.com/2cf6570821614808899422f68a66a381a2de1dd0746ba9cdba6155def1f4f396/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5459504f332d31332d6f72616e67652e737667)](https://get.typo3.org/version/13)[![Minimum PHP Version](https://camo.githubusercontent.com/9c50dc780fa576f5c39b4feff00c05345c1471be0808881a09e750b91220dc54/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e332d3838393242462e737667)](https://php.net/)[![GitHub CI status](https://github.com/netlogix/nxvarnish/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/netlogix/nxvarnish/actions)

Adds varnish integration to TYPO3. Ensures varnish caches are flushed when TYPO3 caches are flushed. Uses cache tags to flush all necessary content.

Compatibility
-------------

[](#compatibility)

The current version (6.x) of this extension has been tested using these versions:

- TYPO3 13.4 on PHP 8.3
- TYPO3 13.4 on PHP 8.4

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

[](#installation)

Install the package via composer.

```
composer require netlogix/nxvarnish
```

Configuration
-------------

[](#configuration)

### TYPO3

[](#typo3)

This extension provides some configuration in Install Tool.

- varnishHost: **required**, needed to communicate with Varnish in order to purge caches
- allowCacheLogin: *optional*, send normal cache headers even when someone is logged in

### Varnish

[](#varnish)

Varnish needs some special configuration to understand cache tags and BAN requests. Add this to your Varnish .vcl:

```
# WARNING: this is an example how to add tag-based purging to an existing
# Varnish configuration. This is *not* a complete configuration!

# a list of clients that are allowed to initiate a BAN
acl purge {
      "localhost";
      # add whatever IPs are allowed to initiate a BAN
      "172.16.0.0"/16; # just an example
}

sub vcl_recv {

    # ...

    if (req.method == "BAN") {
        # only allow cache BANs from known IPs
        if (!std.ip(req.http.X-Client-Ip, client.ip) ~ purge) {
            return (synth(405, "Not allowed."));
        }

        # ban using cache tags
        if (req.http.X-Cache-Tags) {
            # this will ban all cache objects with matching tags
            ban("obj.http.X-Cache-Tags ~ " + req.http.X-Cache-Tags);

            # create an HTTP 200 response and exit
            return (synth(200, "Ban added."));
        }

        # return an error if no cache tags were provided.
        # you might need to remove this if you have additional BAN conditions
        return (synth(400, "Bad Request."));

    }

    # ...

}

sub vcl_deliver {
    # ...

    # remove cache-tags header from response sent to client
    unset resp.http.X-Cache-Tags;

    # ...
}
```

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance77

Regular maintenance activity

Popularity33

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 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 ~172 days

Recently: every ~215 days

Total

6

Last Release

374d ago

Major Versions

3.1.0 → 4.0.02023-02-14

4.0.2 → 5.0.02023-07-31

5.0.0 → 6.0.02025-06-25

PHP version history (3 changes)3.1.0PHP ^7.2

4.0.0PHP ^7.4 || ^8.0 || ^8.1

5.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/667b5107f4c2ea180baa00166c2ee3f2a1b412ce22768d6e81bb09323d1c7fe0?d=identicon)[netlogix](/maintainers/netlogix)

![](https://www.gravatar.com/avatar/124704a0d41c6364ac5773df0c9bedc3a85f902f0826df5f12ff2a4b2a06d520?d=identicon)[paxuclus](/maintainers/paxuclus)

![](https://www.gravatar.com/avatar/2492899d51c61e47bd5a782df61c04dcb10628cf90a187efb3a02c3e9bd5ba8e?d=identicon)[tweis](/maintainers/tweis)

---

Top Contributors

[![phroust](https://avatars.githubusercontent.com/u/4057645?v=4)](https://github.com/phroust "phroust (19 commits)")[![MoritzEckert](https://avatars.githubusercontent.com/u/129366476?v=4)](https://github.com/MoritzEckert "MoritzEckert (13 commits)")[![tweis](https://avatars.githubusercontent.com/u/63323?v=4)](https://github.com/tweis "tweis (9 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![saschanowak](https://avatars.githubusercontent.com/u/1643495?v=4)](https://github.com/saschanowak "saschanowak (2 commits)")

---

Tags

phptypo3varnish

### Embed Badge

![Health badge](/badges/netlogix-nxvarnish/health.svg)

```
[![Health](https://phpackages.com/badges/netlogix-nxvarnish/health.svg)](https://phpackages.com/packages/netlogix-nxvarnish)
```

###  Alternatives

[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103519.9k53](/packages/friendsoftypo3-content-blocks)[typo3/cms-form

TYPO3 CMS Form - Flexible TYPO3 frontend form framework that comes with a backend editor interface.

147.6M265](/packages/typo3-cms-form)[b13/assetcollector

Asset collector - Add CSS and SVG files and strings as inline style tag/inline svg to the html code.

10125.6k](/packages/b13-assetcollector)[brotkrueml/schema

Embedding schema.org vocabulary - API and view helpers for schema.org markup

34653.7k16](/packages/brotkrueml-schema)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

611.1M8](/packages/netresearch-rte-ckeditor-image)[fluidtypo3/flux

The flux package from FluidTYPO3

1501.0M25](/packages/fluidtypo3-flux)

PHPackages © 2026

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