PHPackages                             jrrdnx/craft-cloudflare-r2 - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. jrrdnx/craft-cloudflare-r2

ActiveCraft-plugin[File &amp; Storage](/categories/file-storage)

jrrdnx/craft-cloudflare-r2
==========================

Cloudflare R2 integration for Craft CMS

1.1.1(2y ago)65.3k↑59.4%4[1 issues](https://github.com/jrrdnx/craft-cloudflare-r2/issues)1MITPHPPHP ^8.0.2

Since Jul 13Pushed 2w ago1 watchersCompare

[ Source](https://github.com/jrrdnx/craft-cloudflare-r2)[ Packagist](https://packagist.org/packages/jrrdnx/craft-cloudflare-r2)[ RSS](/packages/jrrdnx-craft-cloudflare-r2/feed)WikiDiscussions 2.x Synced today

READMEChangelog (6)Dependencies (6)Versions (14)Used By (1)

Cloudflare R2
=============

[](#cloudflare-r2)

[Cloudflare R2](https://www.cloudflare.com/products/r2/) filesystem for Craft CMS

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

[](#requirements)

This plugin requires Craft CMS ^4.0.0-beta.1 and PHP ^8.0.2

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

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require jrrdnx/craft-cloudflare-r2

    ```
3. Navigate to Settings -&gt; Plugins and click the "Install" button for Cloudflare R2.

Configuring filesystem
----------------------

[](#configuring-filesystem)

1. Navigate to Settings -&gt; Filesystems and click the "New Filesystem" button.
2. Select "Cloudflare R2" from the "Filesystem Type" dropdown.
3. Enter your Account ID, Access Key ID, and Secret Access Key (it's recommended to store these in your `.env` file and reference the environment variables here).
4. Hit Refresh to load the bucket list, or choose the Manual option and enter the bucket name (again, you can store this in your `.env` file and reference the environment variable).
5. Optionally add a Subfolder, determine whether or not to add the Subfolder to the Base URL, and set the Cache Control duration.

### Making objects public (optional)

[](#making-objects-public-optional)

See [Create Public Buckets on R2](https://developers.cloudflare.com/r2/data-access/public-buckets/) for details on adding a custom domain or managing public buckets through r2.dev, or [Use R2 from Workers](https://developers.cloudflare.com/r2/data-access/workers-api/workers-api-usage/) for more fine-tuned access control. Also feel free to reference a full guide to [Configuring a Cloudflare R2 Bucket and Worker for Public Access](https://jarrodnix.dev/blog/configuring-a-cloudflare-r2-bucket-and-worker-for-public-access).

Misc
----

[](#misc)

[Open an Issue](https://github.com/jrrdnx/craft-cloudflare-r2/issues)

Brought to you by [Jarrod D Nix](https://jarrodnix.dev)

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance60

Regular maintenance activity

Popularity30

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity60

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

Every ~143 days

Recently: every ~181 days

Total

11

Last Release

16d ago

Major Versions

0.2.0-beta → 1.0.02022-12-29

0.5.0 → 1.1.12024-06-25

0.5.1 → 2.x-dev2026-06-19

PHP version history (3 changes)0.1.0-betaPHP ^8.0.2

0.5.0PHP ^7.2.5

2.x-devPHP ^8.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4584671?v=4)[Jarrod Nix](/maintainers/jrrdnx)[@jrrdnx](https://github.com/jrrdnx)

---

Top Contributors

[![jrrdnx](https://avatars.githubusercontent.com/u/4584671?v=4)](https://github.com/jrrdnx "jrrdnx (10 commits)")

---

Tags

Flysystems3cmsyii2cloudflarecraftcmsr2

### Embed Badge

![Health badge](/badges/jrrdnx-craft-cloudflare-r2/health.svg)

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

###  Alternatives

[craftcms/aws-s3

Amazon S3 integration for Craft CMS

631.5M29](/packages/craftcms-aws-s3)[servd/craft-asset-storage

Servd Asset Storage and Helpers integration for Craft CMS

1184.0k10](/packages/servd-craft-asset-storage)[vaersaagod/dospaces

DigitalOcean Spaces integration for Craft CMS

36104.0k1](/packages/vaersaagod-dospaces)[craftcms/commerce

Craft Commerce

240425.9k186](/packages/craftcms-commerce)[craftcms/google-cloud

Google Cloud Storage integration for Craft CMS

11102.0k1](/packages/craftcms-google-cloud)

PHPackages © 2026

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