PHPackages                             amazeelabs/netlify\_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. amazeelabs/netlify\_cdn

ActiveDrupal-module[Caching](/categories/caching)

amazeelabs/netlify\_cdn
=======================

Integration with Netlify for purging the CDN (assets) cache.

1.0.3(1y ago)0596GPL-2.0+PHP

Since Dec 18Pushed 1y ago2 watchersCompare

[ Source](https://github.com/AmazeeLabs/netlify_cdn)[ Packagist](https://packagist.org/packages/amazeelabs/netlify_cdn)[ Docs](https://github.com/AmazeeLabs/silverback-mono/tree/development/packages/composer/amazeelabs/netlify_cdn#readme)[ RSS](/packages/amazeelabs-netlify-cdn/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Netlify CDN
===========

[](#netlify-cdn)

Integration with Netlify for purging the CDN (assets) cache.

How it works
============

[](#how-it-works)

When specific actions happen (for now the image style flush hook is implemented) that could affect resources (for example images) which are stored on netlify, and they are tagged with specific cache tags, then those cache tags get invalidated.

As mentioned, this module, out of the box, provides an implementation for the image style flush hook in netlify\_cdn\_image\_style\_flush(), which is also a very good example on how possibly other custom code could flag specific tags to be invalidated.

Configuration
=============

[](#configuration)

There is no particular configuration form for this module, everything gets configured through environment variables because the only things needed at the moment for this module are netlify credentials.

To validate resources on a netlify site, we need two types of credentials: an auth token and a site id. For the same auth token, we can have also multiple site ids.

This module is able to purge cache on multiple site ids which can use different auth tokens a well.

Each individual auth token needs to have an env variable which has the "**NETLIFY*CDN\_AUTH\_TOKEN***" prefix, for example: "**NETLIFY\_CDN\_AUTH\_TOKEN\_ANIMALS**". Then, each of the site ids which belong to the above-mentioned token needs to have the env variable name prefixed with "**NETLIFY*CDN\_SITE\_ID\_ANIMALS***", for example: "**NETLIFY\_CDN\_SITE\_ID\_ANIMALS\_CAT**", "**NETLIFY\_CDN\_SITE\_ID\_ANIMALS\_DOG**".

As a summary, here is how a possible configuration of env variables would look like for multiple tokens and multiple sites:

- **NETLIFY\_CDN\_AUTH\_TOKEN\_ANIMALS**
    - **NETLIFY\_CDN\_SITE\_ID\_ANIMALS\_CAT**
    - **NETLIFY\_CDN\_SITE\_ID\_ANIMALS\_DOG**
- **NETLIFY\_CDN\_AUTH\_TOKEN\_TREES**
    - **NETLIFY\_CDN\_SITE\_ID\_TREES\_OAK**
    - **NETLIFY\_CDN\_SITE\_ID\_TREES\_PINE**

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

516d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/501415?v=4)[Philipp Melab](/maintainers/pmelab)[@pmelab](https://github.com/pmelab)

---

Top Contributors

[![chindris](https://avatars.githubusercontent.com/u/902250?v=4)](https://github.com/chindris "chindris (2 commits)")

### Embed Badge

![Health badge](/badges/amazeelabs-netlify-cdn/health.svg)

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

###  Alternatives

[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[wp-media/wp-rocket

Performance optimization plugin for WordPress

7431.3M3](/packages/wp-media-wp-rocket)[illuminate/cache

The Illuminate Cache package.

12835.6M1.4k](/packages/illuminate-cache)[colinmollenhour/php-redis-session-abstract

A Redis-based session handler with optimistic locking

6325.6M14](/packages/colinmollenhour-php-redis-session-abstract)[cheprasov/php-redis-client

Php client for Redis. It is a fast, fully-functional and user-friendly client for Redis, optimized for performance. RedisClient supports the latest versions of Redis starting from 2.6 to 6.0

1281.2M21](/packages/cheprasov-php-redis-client)[amphp/redis

Efficient asynchronous communication with Redis servers, enabling scalable and responsive data storage and retrieval.

165634.7k44](/packages/amphp-redis)

PHPackages © 2026

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