PHPackages                             b13/cloudflare-cdn - 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. b13/cloudflare-cdn

ActiveTypo3-cms-extension[Caching](/categories/caching)

b13/cloudflare-cdn
==================

Cloudflare CDN Adapter for purging TYPO3 caches

2.0.1(11mo ago)316.0k↓33.8%1GPL-2.0-or-laterPHPPHP ^8.0

Since Oct 10Pushed 11mo ago7 watchersCompare

[ Source](https://github.com/b13/cloudflare-cdn)[ Packagist](https://packagist.org/packages/b13/cloudflare-cdn)[ RSS](/packages/b13-cloudflare-cdn/feed)WikiDiscussions main Synced 1mo ago

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

Cloudflare CDN Adapter for TYPO3
================================

[](#cloudflare-cdn-adapter-for-typo3)

When TYPO3 is running behind Cloudflare's CDN, this extension is a perfect companion for you.

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

[](#installation)

You can install this extension by using composer:

```
composer req b13/cloudflare-cdn

```

Usage
-----

[](#usage)

By default, EXT:cloudflare\_cdn ships with a `cdn:purge` CLI command to purge a full CDN zone or a specific URL within the CDN zone.

It is possible to purge a single or multiple URLs

```
./vendor/bin/typo3 cdn:purge --url=https://www.exmaple.com/page1 --url=https://www.exmaple.com/page2

```

or purge a whole CDN Zone

```
./vendor/bin/typo3 cdn:purge --zone=my-zone-id

```

Integration into TYPO3 Backend
------------------------------

[](#integration-into-typo3-backend)

EXT:cloudflare\_cdn can be used in conjunction with TYPO3's Proxy Cache Manager Extension.

Using the Cloudflare CDN Adapter for EXT:proxycachemanager flushes page caches directly when modifying a page. This is perfect if you're dealing with Cloudflare CDN that not just caches your static assets but also your pages.

For this, ensure to set the class `\B13\CloudflareCDN\Provider\CloudflareProxyProvider` in the settings of EXT:proxycachemanager.

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

[](#configuration)

This extension purges CDN caches via cURL requests wrapped in Guzzle's API (bundled in TYPO3).

For this, you need a Cloudflare API Token.

API Tokens are generated from the User Profile 'API Tokens' page (see )

Get your Zone ID via Dash in your Zone on the right-side menu.

Ensure to set the environment variable CLOUDFLARE\_API\_TOKEN.

Please note that the ProxyProvider needs additional configuration for each zone in

```
$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['cloudflare']['zones'] = [
    'example.com' => 'ZONE_ID'
];

```

This way, you can use multiple domains in one TYPO3 installation having CDN support.

License
-------

[](#license)

The extension is licensed under GPL v2+, same as the TYPO3 Core. For details see the LICENSE file in this repository.

Extension Icon courtesy of Cloudflare Inc.

Open Issues
-----------

[](#open-issues)

If you find an issue, feel free to create an issue on GitHub or a pull request.

Credits
-------

[](#credits)

This extension was created by [Benni Mack](https://github.com/bmack) in 2022 for [b13 GmbH](https://b13.com).

[Find more TYPO3 extensions we have developed](https://b13.com/useful-typo3-extensions-from-b13-to-you) that help us deliver value in client projects. As part of the way we work, we focus on testing and best practices to ensure long-term performance, reliability, and results in all our code.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance52

Moderate activity, may be stable

Popularity30

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity54

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

Total

3

Last Release

335d ago

Major Versions

1.0.0 → 2.0.02023-11-06

PHP version history (2 changes)1.0.0PHP ^7.4 || ^8.0

2.0.0PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/165630?v=4)[Benni Mack](/maintainers/bmack)[@bmack](https://github.com/bmack)

---

Top Contributors

[![bmack](https://avatars.githubusercontent.com/u/165630?v=4)](https://github.com/bmack "bmack (4 commits)")[![achimfritz](https://avatars.githubusercontent.com/u/2152991?v=4)](https://github.com/achimfritz "achimfritz (3 commits)")[![georgringer](https://avatars.githubusercontent.com/u/1905663?v=4)](https://github.com/georgringer "georgringer (2 commits)")

---

Tags

cachecloudflarecdntypo3purge

### Embed Badge

![Health badge](/badges/b13-cloudflare-cdn/health.svg)

```
[![Health](https://phpackages.com/badges/b13-cloudflare-cdn/health.svg)](https://phpackages.com/packages/b13-cloudflare-cdn)
```

###  Alternatives

[b13/proxycachemanager

TYPO3 Extension that automatically flushes cached URLs within a proxy / CDN.

10100.7k](/packages/b13-proxycachemanager)[nexxai/laravel-cfcache

A handful of Cloudflare cache helpers for Laravel

1317.7k](/packages/nexxai-laravel-cfcache)[yediyuz/laravel-cloudflare-cache

laravel-cloudflare-cache

28239.2k](/packages/yediyuz-laravel-cloudflare-cache)[steadlane/silverstripe-cloudflare

This module aims to relieve the stress of using Cloudflare caching with any SilverStripe project. Adds extension hooks that clears Cloudflare's cache for a specific page when that page is published or unpublished.

243.7k](/packages/steadlane-silverstripe-cloudflare)

PHPackages © 2026

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