PHPackages                             b13/akamai - 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/akamai

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

b13/akamai
==========

Akamai CDN Adapter for purging TYPO3 caches

3.0.0(1y ago)0926GPL-2.0-or-laterPHPPHP &gt;=8.1

Since May 1Pushed 1y ago8 watchersCompare

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

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

Akamai CDN Adapter for TYPO3
============================

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

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

This extension hides the complexity for Akamai's EdgeGrid API to purge caches.

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

[](#installation)

As EXT:akamai is using some PHP libraries, this extension is currently only useful when running TYPO3 in composer mode. You can install this extension by using composer:

```
composer req b13/akamai

```

Usage
-----

[](#usage)

By default, EXT:akamai ships with a `akamai:purge` CLI command to purge a content provider group (CP) or a specific URL. TYPO3 is using the graceful "invalidate" endpoints.

It is possible to purge a single or multiple URLs

```
./vendor/bin/typo3 akamai:purge --url=https://example.com/page1 --url=https://example.com/page2

```

or purge a whole Content Provider by its CP code

```
./vendor/bin/typo3 akamai:purge --url=https://example.com/page1 --url=https://example.com/page2

```

EXT:akamai chooses the network by determining the TYPO3 Context and only uses the production network if TYPO3 Context is set to Production. However, this can be overridden by a `--network=staging` or `--network=production` setting.

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

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

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

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

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

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

[](#configuration)

### Credentials

[](#credentials)

Akamai uses a `.edgerc` credentials file, which currently request to be in TYPO3's main directory (project path, also where your composer file resides).

This file might look like this:

```
[default]
client_secret = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
host = xxxxx.purge.akamaiapis.net
access_token = xxxxx
client_token = xxxxx

```

It is also possible to use Environment variables directly.

```
AKAMAI_DEFAULT_CLIENT_SECRET = xxxxx
AKAMAI_DEFAULT_HOST = xxxxx.purge.akamaiapis.net
AKAMAI_DEFAULT_ACCESS_TOKEN = xxxxx
AKAMAI_DEFAULT_CLIENT_TOKEN = xxxxx

```

Use the Extension setting `configType` to choose between the Environment and the `.edgerc` mode.

Please note that the host never contains the URL scheme - no matter what configuration type you're choosing.

The default section can be configured as well, in case your installation has multiple endpoints at Akamai.

### Using multiple sections / CDN endpoints in Site Configuration

[](#using-multiple-sections--cdn-endpoints-in-site-configuration)

It is possible to define the CP code by site when using the integration of `EXT:proxycachemanager`. Ensure to set this in your TYPO3 site `config.yaml`:

```
settings:
  cdn:
    akamai_cpcode: "12345"
    akamai_auth_section: "superbowl_campaign"

```

License
-------

[](#license)

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

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 2020 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

38

—

LowBetter than 85% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 78.9% of commits — single point of failure

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

Recently: every ~313 days

Total

10

Last Release

535d ago

Major Versions

v1.1.1 → v2.0.02023-01-05

v2.0.2 → 3.0.02024-11-28

PHP version history (3 changes)v2.0.0PHP ^8.1

v2.0.1PHP &lt;8.1

v2.0.2PHP &gt;=8.1

### 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 (15 commits)")[![achimfritz](https://avatars.githubusercontent.com/u/2152991?v=4)](https://github.com/achimfritz "achimfritz (3 commits)")[![davidsteeb](https://avatars.githubusercontent.com/u/3862523?v=4)](https://github.com/davidsteeb "davidsteeb (1 commits)")

---

Tags

cachecdnakamaitypo3purge

### Embed Badge

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

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

###  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)[spekkionu/assetcachebuster

Prefixes asset urls with a unique hash which will allow invalidation of asset files cached by the browser.

3243.2k](/packages/spekkionu-assetcachebuster)

PHPackages © 2026

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