Replies: 2 comments 2 replies
-
We are currently defining the minimum PHP version in It would look like this in diff --git a/composer.json b/composer.json
index c2f224223f..11ac30a389 100644
--- a/composer.json
+++ b/composer.json
@@ -1,5 +1,7 @@
{
"require": {
+ "ext-xml": "*",
+ "ext-mbstring": "*",
"adodb/adodb-php": "v5.20.18",
"components/jquery": "^3.5",
"components/jqueryui": "1.*",
@@ -43,6 +45,7 @@
"config": {
"component-dir": "lib/components",
"vendor-dir": "lib/vendor",
+ "platform-check": true,
"platform": {
"php": "8.1.0"
}, This results in the generation of a script called (Composer also supports a |
Beta Was this translation helpful? Give feedback.
-
@marcbria, my preference would be for us not to maintain a list of required modules. That's because it'll likely fall out of date, and because so many of the required modules are defined by 3rd-party dependencies that may change. Instead, I would prefer that we add...
This combo allows the set of requirements to be calculated from the dependencies (though some are specified manually in the Composer config) rather than being maintained once in the code and again in the recommendations. If that's OK with you, then all that's left is to update the documentation to point to the |
Beta Was this translation helpful? Give feedback.
-
For a sysadmin knowing the requirements to install a software is essential, and currently this in OxS tools can be a bit complicated.
The problems I see are several:
Regarding the "Location" issue, explain that this has changed over time:
In new versions it is on a PKP Docs Hub web page (e.g. here), which is good because you can update any time you need... but at the same time it is a problem because you cannot associate versions and releases, the version history is lost and, furthermore, many administrators are unaware of the existence of PKPDocs.
In the old versions we kept the requirements in the README.md file, which on the one hand ties your hands because once released, it cannot be changed, but at the same time it has very positive effects such as maintaining an unambiguous relationship between version and release or forcing you to review the requirements in each release.
Thus, the proposal consists of maintaining the requirements in the code (e.g. README.md) to facilitate its location, and also so that in the future, there are no doubts about the version for which a certain test was performed. This file need to be extended with HW requirements as an orientation to dimension the resources need.
It could also be important to ensure that the release process includes a specific step/check to review this requirements file (including php plugins and any other dependencies).
To facilitate the transition, to maintain backward compatibility (or if it is still considered necessary to keep it as a webpage), in the README.md you can add a link to the PKPDoc website with a note like "Check this for updated information." but the webpage need to be understood as secondary medium to make those requirements visible, not the main source.
Finally, if over time the maintenance of the website is abandoned, we can always link to the README.md and that's it.
Beta Was this translation helpful? Give feedback.
All reactions