PHPackages                             harugon/cloudflare - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. harugon/cloudflare

ActiveMediawiki-extension[Utility &amp; Helpers](/categories/utility)

harugon/cloudflare
==================

0.2.0(2y ago)125[1 issues](https://github.com/harugon/mediawiki-extensions-cloudflare/issues)MITPHPPHP &gt;=7.4

Since Dec 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/harugon/mediawiki-extensions-cloudflare)[ Packagist](https://packagist.org/packages/harugon/cloudflare)[ RSS](/packages/harugon-cloudflare/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (5)Dependencies (6)Versions (8)Used By (0)

Cloudflare® - MediaWiki
=======================

[](#cloudflare---mediawiki)

[English](./README.en.md)

ページの更新、画像の再アップロード時に Cloudflare のキャッシュをパージします (主に画像のキャッシュを消すことを目的としています)

[MediaWiki で CloudFlare を使う – harugon のブログ](https://blog.r9g.net/archives/121)

導入前に上記のページを読むことをおすすめします。

Requirements
------------

[](#requirements)

- PHP 7.4
- MediaWiki 1.35

Install
-------

[](#install)

[Releases · harugon/mediawiki-extensions-cloudflare](https://github.com/harugon/mediawiki-extensions-cloudflare/releases)

上記の URL より`Cloudflare-{バーション}.tar.gz`のファイルをダウンロードし extensions に展開

LocalSettings.php に Cloudflare の API 情報とともに追記します。

```
wfLoadExtension('Cloudflare');
$wgCloudflareEmail = '';
$wgCloudflareAPIKey = '';
$wgCloudflareZoneID = '';
```

Config
------

[](#config)

変数初期値説明$wgCloudflareEmail""Cloudflare に登録してあるメールアドレス$wgCloudflareAPIKey""APIkey（ [API トークン- Cloudflare](https://dash.cloudflare.com/profile/api-tokens) → Global API Key が必要です ）$wgCloudflareZoneID""サイト（URL）固有の ID （サイトごとのダッシュボードで見ることができます）$wgCloudflarePurgePagefalse記事を更新時に purge する$wgCloudflarePurgeFiletrueファイル（画像）を更新時に purge する### 記事ページをキャッシュする

[](#記事ページをキャッシュする)

`$wgCloudflarePurgePage`を有効化する場合 ページルール (Page Rule) に Bypass Cache on Cookie を設定する必要があります。 (BusinessプランとEnterpriseプランのみ有効です。)

問題
--

[](#問題)

- API Rate limits
- Varnish を挟んでいる場合 ‥（Cloudflare-&gt;Varnish-&gt;origin 先に Cloudflare が消える可能性がある？）

Disclaimer
----------

[](#disclaimer)

Cloudflare, the Cloudflare logo, and Cloudflare Workers are trademarks and/or registered trademarks of Cloudflare, Inc. in the United States and other jurisdictions.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance9

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.8% 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 ~161 days

Total

5

Last Release

1000d ago

PHP version history (2 changes)0.1.0PHP &gt;=7.3

0.2.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e2b9a8d3b478fb5f5a85265bba4d2d373b1a4d5b7be6daefc6328799c23862b?d=identicon)[harugon](/maintainers/harugon)

---

Top Contributors

[![harugon](https://avatars.githubusercontent.com/u/23746312?v=4)](https://github.com/harugon "harugon (36 commits)")[![lakejason0](https://avatars.githubusercontent.com/u/36039861?v=4)](https://github.com/lakejason0 "lakejason0 (2 commits)")[![NekoCharm01](https://avatars.githubusercontent.com/u/34984380?v=4)](https://github.com/NekoCharm01 "NekoCharm01 (2 commits)")[![labster](https://avatars.githubusercontent.com/u/108723?v=4)](https://github.com/labster "labster (1 commits)")

---

Tags

cloudflaremediawikimediawiki-extension

### Embed Badge

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

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

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[mediawiki/maps

Adds various mapping features to MediaWiki

84152.3k3](/packages/mediawiki-maps)[starcitizentools/citizen-skin

A beautiful, usable, responsive MediaWiki skin with in-depth extension support. Originally developed for the Star Citizen Wiki.

3376.6k](/packages/starcitizentools-citizen-skin)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

19251.4k3](/packages/civicrm-civicrm-drupal-8)[altis/core

Core module for Altis

19228.0k3](/packages/altis-core)[pfefferle/wordpress-activitypub

The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format.

5721.7k4](/packages/pfefferle-wordpress-activitypub)

PHPackages © 2026

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