From 562ade04609e1ba0cc1325f90674e4de3e0990d5 Mon Sep 17 00:00:00 2001 From: Thomas De Marez Date: Mon, 30 Sep 2024 11:33:51 +0200 Subject: [PATCH] Craft 5 support --- README.md | 4 ++-- composer.json | 3 ++- src/VideoEmbed.php | 2 +- src/translations/en/video-embed.php | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7deee22..3cc8857 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -# Video Embed plugin for Craft CMS 4.x +# Video Embed plugin for Craft CMS 5.x Generate an embed URL from a YouTube or Vimeo URL. ## Requirements -This plugin requires Craft CMS 4.0.0 or later. +This plugin requires Craft CMS 5.0.0 or later. ## Installation diff --git a/composer.json b/composer.json index cc3e55b..2270c27 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,8 @@ } ], "require": { - "craftcms/cms": "^4.0.0" + "php": "^8.2", + "craftcms/cms": "^5.0.0" }, "autoload": { "psr-4": { diff --git a/src/VideoEmbed.php b/src/VideoEmbed.php index 8f94c61..b70b3f2 100644 --- a/src/VideoEmbed.php +++ b/src/VideoEmbed.php @@ -1,6 +1,6 @@