From 40e4ea931e87c7c59c00828897b2bc7b4643ce96 Mon Sep 17 00:00:00 2001 From: mchev Date: Tue, 24 Mar 2026 07:07:41 +0100 Subject: [PATCH] PHP8.4 requirement --- config/invoiceshelf.php | 2 +- lang/en.json | 3 ++- lang/fr.json | 3 ++- readme.md | 6 ++++++ .../admin/views/settings/UpdateAppSetting.vue | 14 +++++++++++++- 5 files changed, 24 insertions(+), 4 deletions(-) diff --git a/config/invoiceshelf.php b/config/invoiceshelf.php index 16e6dc34..0fe83bc2 100644 --- a/config/invoiceshelf.php +++ b/config/invoiceshelf.php @@ -16,7 +16,7 @@ return [ /* * Minimum php version. */ - 'min_php_version' => '8.2.0', + 'min_php_version' => '8.4.0', /* * Minimum mysql version. diff --git a/lang/en.json b/lang/en.json index d051100a..66edc9d7 100644 --- a/lang/en.json +++ b/lang/en.json @@ -1326,7 +1326,8 @@ "finishing_update": "Finishing Update", "update_failed": "Update Failed", "update_failed_text": "Sorry! Your update failed on : {step} step", - "update_warning": "All of the application files and default template files will be overwritten when you update the application using this utility. Please take a backup of your templates & database before updating." + "update_warning": "All of the application files and default template files will be overwritten when you update the application using this utility. Please take a backup of your templates & database before updating.", + "requirements_not_met": "Update cannot continue because some system requirements are not met (including minimum PHP version). Please fix the failed requirements and try again." }, "backup": { "title": "Backup | Backups", diff --git a/lang/fr.json b/lang/fr.json index f3a5c0a5..c22525b1 100644 --- a/lang/fr.json +++ b/lang/fr.json @@ -1326,7 +1326,8 @@ "finishing_update": "Finalisation de la mise à jour", "update_failed": "Échec de la mise à jour", "update_failed_text": "Désolé ! Votre mise à jour a échoué à: {step} étape", - "update_warning": "Cet utilitaire va écraser tous les fichiers et templates de l'application. Veuillez faire une sauvegarde de vos templates et de la base de donnée avant de faire la mise à jour." + "update_warning": "Cet utilitaire va écraser tous les fichiers et templates de l'application. Veuillez faire une sauvegarde de vos templates et de la base de donnée avant de faire la mise à jour.", + "requirements_not_met": "La mise à jour ne peut pas continuer car certaines exigences système ne sont pas respectées (y compris la version PHP minimale). Veuillez corriger les exigences en échec puis réessayer." }, "backup": { "title": "Sauvegarde | Sauvegardes", diff --git a/readme.md b/readme.md index 3095c9f9..79b52fb6 100644 --- a/readme.md +++ b/readme.md @@ -26,6 +26,12 @@ To get started with InvoiceShelf using Docker Compose, check out the [Installati - [Developer Guide](https://docs.invoiceshelf.com/developer-guide.html) - [API Documentation](https://api-docs.invoiceshelf.com) +## System Requirements + +- Starting from **v2.2.0** (Laravel 13 upgrade), InvoiceShelf requires **PHP 8.4+**. +- Before updating from the app settings, verify your server PHP version and required extensions. +- The in-app updater checks requirements and blocks the update if they are not met. + ## Download - [Download Link](https://invoiceshelf.com) diff --git a/resources/scripts/admin/views/settings/UpdateAppSetting.vue b/resources/scripts/admin/views/settings/UpdateAppSetting.vue index 90e7a370..ebccb87e 100644 --- a/resources/scripts/admin/views/settings/UpdateAppSetting.vue +++ b/resources/scripts/admin/views/settings/UpdateAppSetting.vue @@ -147,7 +147,19 @@ - +
+ {{ $t('settings.update_app.requirements_not_met') }} +
+ + {{ $t('settings.update_app.update') }}