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. harugon/cloudflare

ActiveMediawiki-extension

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 1w 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 14% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity44

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

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

[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k15.7k5](/packages/elgg-elgg)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[johnbillion/user-switching

Instant switching between user accounts in WordPress and WooCommerce.

19768.3k2](/packages/johnbillion-user-switching)[rainlab/blog-plugin

Blog plugin for October CMS

17257.7k](/packages/rainlab-blog-plugin)[rainlab/user-plugin

User plugin for October CMS

11954.3k13](/packages/rainlab-user-plugin)

PHPackages © 2026

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