Support PHP version constraints in info.xml
We (at SYSTOPIA) would like to be able to list known compatible and incompatible PHP versions in the extensions' info.xml
.
Our current idea is to base the format on the CiviCRM Core version compatibility, which is expressed as a list of positive/compatible examples. This way this section of the info.xml
would look something like this:
...
<compatibility>
<ver>5.63</ver>
</compatibility>
<phpCompatibility>
<ver>8.0</ver>
</phpCompatibility>
<phpIncompatibility>
<ver>7.4</ver>
</phpIncompatibility>
...
Please note that we added the phpIncompatibility
too, so we could express specific known incompatibilities.
Of course, the of new tags phpCompatibility
and phpIncompatibility
would be optional.
Since I've received moderately positive, but diffuse feedback on the extension channel about the details, I've opened the discussion here.