Skip to content

Commit

Permalink
Merge pull request #24 from fortrabbit/craft5
Browse files Browse the repository at this point in the history
Craft 5 support
  • Loading branch information
pheeque1 authored Apr 22, 2024
2 parents c72dda4 + d3ee71f commit c555b63
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
Changelog
=========

## 4.0.0 - 2024-04-22
* Craft 5 support


## 3.0.0 - 2022-05-25
* Craft 4 and PHP 8 support

Expand Down
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This plugin provides an [Object Storage](https://help.fortrabbit.com/object-stor

## Requirements

The 3.0 branch of this plugin requires Craft CMS 4.0 and PHP 8.0 or later.
The 4.0 release of this plugin requires Craft CMS 5 and PHP 8.0 or later.


## Installation
Expand Down Expand Up @@ -53,9 +53,14 @@ Or browse to CP > Settings > Plugins to enable the plugin.

**4. Configure**

Configure volumes under: Settings > Assets > **[New Volume]**.
Configure filesystems under: Settings > Filesystems >> **[New Filesystem]**.

Select `fortrabbit Object Storage` as Volume Type and for the Base URL field use `$OBJECT_STORAGE_HOST` ENV variable.
- Select `fortrabbit Object Storage` as Filesystem Type.
- For the Base URL field use `$OBJECT_STORAGE_HOST` ENV variable.
All other fields are pre-configured with ENV vars already.
- Set a value for Expires (Cache expiration period)

Configure volumes under: Settings > Assets > **[New Volume]**.

- Select the filesystem created above as the Asset Filesystem.

6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
],
"require": {
"php": "^8.0",
"craftcms/cms": "^4.0.0",
"craftcms/flysystem": "^1.0.0",
"craftcms/cms": "^5.0.0",
"craftcms/flysystem": "^2.0.0",
"league/flysystem-aws-s3-v3": "^3.0.0",
"symfony/console": "^5.1"
"symfony/console": "^6.0 | ^7.0"
},
"require-dev": {
"craftcms/phpstan": "dev-main",
Expand Down

0 comments on commit c555b63

Please sign in to comment.