PHPackages                             jamiemufu/cloud-flare-purger - 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. jamiemufu/cloud-flare-purger

ActiveLibrary[Caching](/categories/caching)

jamiemufu/cloud-flare-purger
============================

Cloud Flare Cache Purger

v1.0(5y ago)07PHP

Since Nov 17Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Jamiemufu/CloudFlarePurger)[ Packagist](https://packagist.org/packages/jamiemufu/cloud-flare-purger)[ RSS](/packages/jamiemufu-cloud-flare-purger/feed)WikiDiscussions main Synced today

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

CloudFlarePurger
================

[](#cloudflarepurger)

This package will you allow you to purge the cache of specific URLS or purge everything from an API request rather than logging into Cloud Flare and purging from the menu. This package works well with WebHook - for instance if content get's updated and your get notified via web-hook. You can immedatiatly and programmatically clear the cache for the page where content was updated.

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

[](#installation)

Navigate to root of project (or whever your composer.json is)

`composer require jamiemufu/cloud-flare-purger:dev-main`

Get your Token and SiteID from Cloud Flare
------------------------------------------

[](#get-your-token-and-siteid-from-cloud-flare)

Log into Cloud Flare and click on your profile - or issue a token to another user.

Get the ZoneID for the site on Cloud Flare - This can be found by clicking 'Overview' on your site in Cloud Flare.

Verify your token
-----------------

[](#verify-your-token)

Check if you have a valid token

```
$request = new CloudFlarePurger('your_token', 'your_zone_id);

$request->verifyToken();
```

Purge the whole site
--------------------

[](#purge-the-whole-site)

```
$request = new CloudFlarePurger('your_token', 'your_zone_id);

$request->purgeAll();
```

Purge specific URL's
--------------------

[](#purge-specific-urls)

Pass an array of URL's to CloudFlarePurger

```
$urls = [
  'https://example.com',
  'https://example.com/1'
];

$request = new CloudFlarePurger('your_token', 'your_zone_id);

$request->purgeUrls($urls);
```

Or pass a single in the array

```
$urls = [
  'https://example.com',
];

$request = new CloudFlarePurger('your_token', 'your_zone_id);

$request->purgeUrls($urls);
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.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

Every ~27 days

Total

2

Last Release

1974d ago

Major Versions

v0.1-alpha → v1.02020-12-15

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/32227060?v=4)[Jamie Evans](/maintainers/Jamiemufu)[@Jamiemufu](https://github.com/Jamiemufu)

---

Top Contributors

[![LegendJamie-Evans](https://avatars.githubusercontent.com/u/91060283?v=4)](https://github.com/LegendJamie-Evans "LegendJamie-Evans (2 commits)")[![Jamiemufu](https://avatars.githubusercontent.com/u/32227060?v=4)](https://github.com/Jamiemufu "Jamiemufu (1 commits)")

### Embed Badge

![Health badge](/badges/jamiemufu-cloud-flare-purger/health.svg)

```
[![Health](https://phpackages.com/badges/jamiemufu-cloud-flare-purger/health.svg)](https://phpackages.com/packages/jamiemufu-cloud-flare-purger)
```

###  Alternatives

[svix/svix

Svix PHP Library

3.2k722.4k6](/packages/svix-svix)[eliashaeussler/cache-warmup

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

73387.5k5](/packages/eliashaeussler-cache-warmup)[eliashaeussler/typo3-warming

Warming - Warms up Frontend caches based on an XML sitemap. Cache warmup can be triggered via TYPO3 backend or using a console command. Supports multiple languages and custom crawler implementations.

20229.9k](/packages/eliashaeussler-typo3-warming)[biigle/laravel-file-cache

Fetch and cache files from local filesystem, cloud storage or public webservers in Laravel

1130.9k1](/packages/biigle-laravel-file-cache)

PHPackages © 2026

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