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)08PHP

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 3w ago

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 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

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

2025d 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

[aws/aws-sdk-php

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

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[svix/svix

Svix PHP Library

3.3k964.7k8](/packages/svix-svix)[neuron-core/neuron-ai

The PHP Agentic Framework.

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

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[eliashaeussler/cache-warmup

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

76433.8k11](/packages/eliashaeussler-cache-warmup)

PHPackages © 2026

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