PHPackages                             alejodaraio/cloudflare-purgefile - 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. alejodaraio/cloudflare-purgefile

ActiveLibrary[Caching](/categories/caching)

alejodaraio/cloudflare-purgefile
================================

Small library for purge files on Cloudflare using the API version 4

1.0.0(9y ago)329MITPHP

Since Jan 2Pushed 9y ago1 watchersCompare

[ Source](https://github.com/alejodaraio/cloudflare-php)[ Packagist](https://packagist.org/packages/alejodaraio/cloudflare-purgefile)[ Docs](https://alejodaraio.github.io/cloudflare-php)[ RSS](/packages/alejodaraio-cloudflare-purgefile/feed)WikiDiscussions master Synced 2mo ago

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

Cloudflare Purge Files
======================

[](#cloudflare-purge-files)

Small library for purge files on Cloudflare using the API version 4

[![Coverage Status](https://camo.githubusercontent.com/85f9a7e599606eb3a71b3349d53a579115a11bd8ffa848b15a597ebd1af846c6/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f616c656a6f64617261696f2f636c6f7564666c6172652d7068702f62616467652e737667)](https://coveralls.io/github/alejodaraio/cloudflare-php?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/c31bc6791fa9636d73cbf262ee8cdcdc852d19f819f2275c520ea098435134b7/68747470733a2f2f706f7365722e707567782e6f72672f616c656a6f64617261696f2f636c6f7564666c6172652d707572676566696c652f762f737461626c65)](https://packagist.org/packages/alejodaraio/cloudflare-purgefile)[![Total Downloads](https://camo.githubusercontent.com/458799451568553a3d5d864c51c2d3d9fffa870f5097ec01e1e3c41d75334df4/68747470733a2f2f706f7365722e707567782e6f72672f616c656a6f64617261696f2f636c6f7564666c6172652d707572676566696c652f646f776e6c6f616473)](https://packagist.org/packages/alejodaraio/cloudflare-purgefile)[![Daily Downloads](https://camo.githubusercontent.com/59fb77be1d5b302c50d3c5fc7063ee44ff9b7dd2a1712c3316c530b9cc60e775/68747470733a2f2f706f7365722e707567782e6f72672f616c656a6f64617261696f2f636c6f7564666c6172652d707572676566696c652f642f6461696c79)](https://packagist.org/packages/alejodaraio/cloudflare-purgefile)[![Dependency Status](https://camo.githubusercontent.com/88b99f69a116aaabc8e6183f91b7d86292a44666aed05a883df7a24e2a82ccfb/687474703a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3538366137353563633166663034303033663939333764332f62616467652e7376673f7374796c653d666c6174)](http://www.versioneye.com/user/projects/586a755cc1ff04003f9937d3)

#### Install

[](#install)

Installation should be done via composer, details of how to install composer can be found at

`composer require alejodaraio/cloudflare-purgefile`

#### Usage

[](#usage)

```
use CloudFlare;

try {
  $cf = new CloudFlare('email@email.com', 'theKey', 'theZoneId');

  $urls = array('http://mysite.com/example');
  $tags = array();
  $cf->purge_files($urls, $tags);
}
catch(CloudFlareException $e) {
  print $e->getMessage();
}
```

License

MIT

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

3417d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8ba0043a800b29574270521781e08e7582b8f52c633fc6f32e586335f1cc073b?d=identicon)[alejodaraio](/maintainers/alejodaraio)

---

Top Contributors

[![alejodaraio](https://avatars.githubusercontent.com/u/19291876?v=4)](https://github.com/alejodaraio "alejodaraio (46 commits)")

---

Tags

cachecloudflaretagspurgeexpire

### Embed Badge

![Health badge](/badges/alejodaraio-cloudflare-purgefile/health.svg)

```
[![Health](https://phpackages.com/badges/alejodaraio-cloudflare-purgefile/health.svg)](https://phpackages.com/packages/alejodaraio-cloudflare-purgefile)
```

###  Alternatives

[yediyuz/laravel-cloudflare-cache

laravel-cloudflare-cache

28239.2k](/packages/yediyuz-laravel-cloudflare-cache)[nexxai/laravel-cfcache

A handful of Cloudflare cache helpers for Laravel

1317.7k](/packages/nexxai-laravel-cfcache)[b13/proxycachemanager

TYPO3 Extension that automatically flushes cached URLs within a proxy / CDN.

10100.7k](/packages/b13-proxycachemanager)[byerikas/cache-tags

Allows for Redis/Valkey cache flushing multiple tagged items by a single tag.

1413.9k](/packages/byerikas-cache-tags)[steadlane/silverstripe-cloudflare

This module aims to relieve the stress of using Cloudflare caching with any SilverStripe project. Adds extension hooks that clears Cloudflare's cache for a specific page when that page is published or unpublished.

243.7k](/packages/steadlane-silverstripe-cloudflare)

PHPackages © 2026

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