You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Aside the dependencies upgrades, ext-imagick and ext-intl has been added as monarc/frontoffice use them but they are not declared in the current composer.json
Also the php and platform should be upgraded because the current
"php": "^8.0" → Allows PHP 8.0, 8.1, 8.2, etc.
"platform": {"php": "8.1.0"} → Composer will pretend to run on PHP 8.1.0 locally
This may mask actual PHP 8.2 compatibility issues during local testing
PHP upgrade plan:
Update php requirement from ^8.0 to ^8.2
Add missing extensions: ext-imagick and ext-intl
Update platform PHP from 8.1.0 to 8.2.0 for accurate local testing
Upgrade dependencies:
laminas-mvc: 3.1 → 3.5+
symfony/console: 5.0 → 5.4 (LTS)
robthree/twofactorauth: 1.8 → 3.0+
Other Laminas packages to latest in their major version
Run composer update and test thoroughly
Run project tests with PHP 8.2
Fix bugs in place (create sub-issues if major problems occur).
Greetings to you PHP nerds!
As a sysadmin I failed to install the Monarc App via Docker and now struggle with the native install. One of the issues is the outdated PHP version.
Nowdays the PHP 8.2 is the minimum PHP version in the standard Ubuntu 24 and Debian 12 repositories.
PHP Update problems:
I've scanned the php files against the PHP 8.2 incompatibilities and found nothing, but
some
compose.jsondependencies are incompatible for sure:Recommended Changes:
{ "name": "monarc/monarc", "description": "Monarc application", "license": "AGPL-3.0-or-later", "require": { "php": "^8.2", "ext-json": "*", "ext-pdo": "*", "ext-bcmath": "*", "ext-openssl": "*", "ext-imagick": "*", "ext-intl": "*", "monarc/frontoffice": "^2.13.1", "monarc/core": "^2.13.1", "laminas/laminas-mvc": "^3.5", "laminas/laminas-di": "^3.2", "laminas/laminas-permissions-rbac": "^3.0", "laminas/laminas-log": "^2.18", "laminas/laminas-i18n": "^2.21", "symfony/console": "^5.4", "laminas/laminas-dependency-plugin": "^2.2", "laminas/laminas-mvc-middleware": "^2.4", "robthree/twofactorauth": "^3.0", "endroid/qr-code": "^4.8", "laminas/laminas-captcha": "^2.18" }, "config": { "bin-dir": "bin/", "platform": { "php": "8.2.0" }, "allow-plugins": { "laminas/laminas-dependency-plugin": true } }, "minimum-stability": "dev", "prefer-stable": true }Aside the dependencies upgrades,
ext-imagickandext-intlhas been added asmonarc/frontofficeuse them but they are not declared in the currentcomposer.jsonAlso the php and platform should be upgraded because the current
"php": "^8.0"→ Allows PHP 8.0, 8.1, 8.2, etc."platform": {"php": "8.1.0"}→ Composer will pretend to run on PHP 8.1.0 locallyPHP upgrade plan:
phprequirement from^8.0to^8.2ext-imagickandext-intl8.1.0to8.2.0for accurate local testinglaminas-mvc: 3.1 → 3.5+symfony/console: 5.0 → 5.4 (LTS)robthree/twofactorauth: 1.8 → 3.0+composer updateand test thoroughly