diff --git a/.mokogitea/CLAUDE.md b/.mokogitea/CLAUDE.md index f85079e9..6c2ab8b8 100644 --- a/.mokogitea/CLAUDE.md +++ b/.mokogitea/CLAUDE.md @@ -7,7 +7,7 @@ Full-site backup and restore for Joomla — database, files, and configuration. | Field | Value | |---|---| | **Package** | `pkg_mokosuitebackup` | -| **Language** | PHP 8.1+ | +| **Language** | PHP 8.3+ | | **Branch** | develop on `dev`, merge to `main` (protected) | | **Wiki** | [MokoSuiteBackup Wiki](https://git.mokoconsulting.tech/MokoConsulting/MokoSuiteBackup/wiki) | @@ -29,7 +29,7 @@ Joomla **package** with four sub-extensions: ### com_mokosuitebackup (Component) - Admin backend for managing backup profiles and records - Backup engine: `Engine/BackupEngine`, `Engine/DatabaseDumper`, `Engine/FileScanner`, `Engine/Archiver` -- Joomla 4/5 MVC: Controllers, Models, Views, Tables +- Joomla 6 MVC: Controllers, Models, Views, Tables - Namespace: `Joomla\Component\MokoSuiteBackup\Administrator` - DB tables: `#__mokosuitebackup_profiles`, `#__mokosuitebackup_records` - CLI: `cli/mokosuitebackup.php` for cron-based backups @@ -64,8 +64,8 @@ Joomla **package** with four sub-extensions: ## Coding Standards -- PHP 8.1+ minimum -- Joomla 4/5 DI container pattern: `services/provider.php` → Extension class +- PHP 8.3+ minimum (Joomla 6) +- Joomla 6 DI container pattern: `services/provider.php` → Extension class - Legacy stub `.php` file required for plugin loader but empty - `SubscriberInterface` for event subscription (not `on*` method naming) - `bind() → check() → store()` for Table operations (not `save()`) diff --git a/composer.json b/composer.json index bd363ab3..08b68d15 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ } ], "require": { - "php": ">=8.1", + "php": ">=8.3", "ext-zip": "*", "ext-pdo": "*", "ext-pdo_mysql": "*", diff --git a/source/packages/com_mokosuitebackup/src/Engine/MokoRestore.php b/source/packages/com_mokosuitebackup/src/Engine/MokoRestore.php index 1d06801b..a90c037f 100644 --- a/source/packages/com_mokosuitebackup/src/Engine/MokoRestore.php +++ b/source/packages/com_mokosuitebackup/src/Engine/MokoRestore.php @@ -480,8 +480,8 @@ function actionPreflight(): array $checks[] = [ 'label' => 'PHP Version', 'value' => PHP_VERSION, - 'ok' => version_compare(PHP_VERSION, '8.1', '>='), - 'hint' => 'Joomla 4/5 requires PHP 8.1+', + 'ok' => version_compare(PHP_VERSION, '8.3', '>='), + 'hint' => 'Joomla 6 requires PHP 8.3+', ]; $checks[] = [ diff --git a/source/packages/com_mokosuitebackup/src/Model/DashboardModel.php b/source/packages/com_mokosuitebackup/src/Model/DashboardModel.php index 8ad63dfc..7a965cad 100644 --- a/source/packages/com_mokosuitebackup/src/Model/DashboardModel.php +++ b/source/packages/com_mokosuitebackup/src/Model/DashboardModel.php @@ -104,7 +104,7 @@ class DashboardModel extends BaseDatabaseModel // PHP version $checks[] = (object) [ 'label' => 'PHP Version', - 'status' => version_compare(PHP_VERSION, '8.1.0', '>='), + 'status' => version_compare(PHP_VERSION, '8.3.0', '>='), 'detail' => PHP_VERSION, ];