Download the PHP package jrrdnx/craft-cloudflare-r2 without Composer
On this page you can find all versions of the php package jrrdnx/craft-cloudflare-r2. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package craft-cloudflare-r2
Cloudflare R2
Cloudflare R2 filesystem for Craft CMS
Requirements
This plugin requires Craft CMS ^4.0.0-beta.1 and PHP ^8.0.2
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require jrrdnx/craft-cloudflare-r2
- Navigate to Settings -> Plugins and click the "Install" button for Cloudflare R2.
Configuring filesystem
- Navigate to Settings -> Filesystems and click the "New Filesystem" button.
- Select "Cloudflare R2" from the "Filesystem Type" dropdown.
- 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). - 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). - 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)
See Create Public Buckets on R2 for details on adding a custom domain or managing public buckets through r2.dev, or Use R2 from Workers 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.
Misc
Brought to you by Jarrod D Nix
All versions of craft-cloudflare-r2 with dependencies
craftcms/cms Version ^4.0.0-beta.1 || ^5.0.0-beta.1
craftcms/flysystem Version ^1.0.0 || ^2.0.0
league/flysystem-aws-s3-v3 Version ^3.0.0