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(1y ago)64.6k—0%4[1 issues](https://github.com/jrrdnx/craft-cloudflare-r2/issues)MITPHPPHP ^8.0.2

Since Jul 13Pushed 11mo 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 main Synced 1mo ago

READMEChangelog (6)Dependencies (6)Versions (11)Used By (0)

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

38

—

LowBetter than 85% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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 ~101 days

Recently: every ~74 days

Total

8

Last Release

686d ago

Major Versions

0.2.0-beta → 1.0.02022-12-29

0.5.0 → 1.1.12024-06-25

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

0.5.0PHP ^7.2.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 (9 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.5M26](/packages/craftcms-aws-s3)[vaersaagod/dospaces

DigitalOcean Spaces integration for Craft CMS

36100.3k1](/packages/vaersaagod-dospaces)[craftcms/google-cloud

Google Cloud Storage integration for Craft CMS

11100.7k1](/packages/craftcms-google-cloud)[servd/craft-asset-storage

Servd Asset Storage and Helpers integration for Craft CMS

1180.7k7](/packages/servd-craft-asset-storage)

PHPackages © 2026

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