PHPackages                             ennexa/amp-update-cache - 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. ennexa/amp-update-cache

ActiveLibrary[Caching](/categories/caching)

ennexa/amp-update-cache
=======================

PHP Class to clear Google AMP Cache

0.1(5y ago)1035.1k↓81.9%4[2 issues](https://github.com/Ennexa/composer-amp-update-cache/issues)2CC0-1.0PHPPHP &gt;=7.1CI failing

Since Oct 1Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Ennexa/composer-amp-update-cache)[ Packagist](https://packagist.org/packages/ennexa/amp-update-cache)[ RSS](/packages/ennexa-amp-update-cache/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (2)

AMP Cache Update
================

[](#amp-cache-update)

A simple PHP Class to update Google AMP Cache

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

[](#installation)

```
composer require ennexa/amp-update-cache:dev-master

```

Usage
-----

[](#usage)

To purge the cache for

```
$var = new Ennexa\AmpCache\Update(PATH_TO_YOUR_PRIVATE_KEY); // Make sure your private key is outside document root

$status = $var->purge('https://www.prokerala.com/health/?amp=1');
```

The script will purge the cache url from all the caches listed in AMP Project's [official caches list](https://cdn.ampproject.org/caches.json).

If you want to purge only Google's AMP cache, you can filter the list as below

```
$updater = new Ennexa\AmpCache\Update(PATH_TO_YOUR_PRIVATE_KEY);
$updater->setCache(array_filter($updater->getCache(), function($cache) {
    return 'google' === $cache->id;
}));
$status = $updater->purge('https://www.prokerala.com/health/?amp=1');
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

2092d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2655327?v=4)[Ennexa Technologies Private Limited](/maintainers/ennexa)[@Ennexa](https://github.com/Ennexa)

---

Top Contributors

[![JoyceBabu](https://avatars.githubusercontent.com/u/502942?v=4)](https://github.com/JoyceBabu "JoyceBabu (6 commits)")[![lasseborly](https://avatars.githubusercontent.com/u/2671660?v=4)](https://github.com/lasseborly "lasseborly (1 commits)")

---

Tags

ampamp-cachephpgooglecacheamp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ennexa-amp-update-cache/health.svg)

```
[![Health](https://phpackages.com/badges/ennexa-amp-update-cache/health.svg)](https://phpackages.com/packages/ennexa-amp-update-cache)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[svix/svix

Svix PHP Library

3.3k877.5k7](/packages/svix-svix)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[eliashaeussler/cache-warmup

Composer package to warm up website caches, based on a given XML sitemap

75419.2k9](/packages/eliashaeussler-cache-warmup)[yediyuz/laravel-cloudflare-cache

laravel-cloudflare-cache

28344.2k](/packages/yediyuz-laravel-cloudflare-cache)

PHPackages © 2026

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