Replies: 16 comments 50 replies
-
Yes set J4 minimum PHP to 7.4. krileon please also set minimum PHP to 7.4 to your extensions |
Beta Was this translation helpful? Give feedback.
-
I'm bold now and do throw in: |
Beta Was this translation helpful? Give feedback.
-
By the time Joomla 4 is released, PHP 8.0 will be available on all hosts... 😉 PHP 8.0 brings many modern language additions, most importantly named arguments, union types, attributes, constructor property promotion and consistency. Why not be bold ? PHP 7.4 is really the bare minimum for credibility among developers. Joomla's success is linked to excitement for developers and users. We shouldn't be living in the past and looking to the future in the rear-view mirror. 😉 Reasonably, we could release Joomla 4.0 with PHP 8.0 recommended, and a minimum of PHP 7.4 for its version lifetime only (so PHP 7.4 support until its EOL). When PHP 7.2 minimum was decided years ago, it made sense. Not anymore. And there is no development work involved to increase the minimum version to only non-EOL PHP versions. With Joomla major versions tending to stay for very very long times, it would make sense to have dependencies (PHP/MySQL/Javascript/CSS/Webserver) support policy only for non-EOL versions. That way, e.g. Joomla 4.0.20 could require PHP 8.0, then 4.2.3 could require PHP 8.1, and so on. People not upgrading their PHP version would not be able to upgrade their Joomla, and would stay with a funcitoning website with a big red warning in the admin aera. Proposals:
|
Beta Was this translation helpful? Give feedback.
-
we can and we should do like we have already stated for mysql
PHP minimum requirements |
Beta Was this translation helpful? Give feedback.
-
Symfony 6 goes with PHP 8.0 |
Beta Was this translation helpful? Give feedback.
-
Have we come to some form of consensus on what to do here? PHP 7.4 is a safe bet, but PHP 8.0 would be as well at this point. I think either would be great. The benefits of PHP 8.0 features on the future of the code base could be huge though. I've checked several major budget hosts and they're providing PHP 8.0 already so shouldn't be a concern regarding hosting at least. |
Beta Was this translation helpful? Give feedback.
-
PHP 7.4 should be the minimal version, that's for sure! There should be no discussion about it. What we should discuss - are we brave enough to jump into PHP 8? Joomla 4 is ready for it, but extension developers may be are far away from it. Or may be not, because there is no such big difference between PHP 7.2 and PHP 8.x. So any extension developer that wants to support Joomla 4 is already making its efforts to support PHP 7.2, so I think there will be no pain to support PHP 8 either. |
Beta Was this translation helpful? Give feedback.
-
As an extension developer, I raise 2 arms and 2 legs in support of php 7.4 |
Beta Was this translation helpful? Give feedback.
-
Personally, I think that the conversation (PHP min ver, MySQL min ver, javascript min ECMAScript ver, CSS min, etc) should not be just a static question "what should be the minimums for Joomla?". |
Beta Was this translation helpful? Give feedback.
-
@krileon @dgrammatiko @brianteeman @progreccor @infograf768 @alikon https://developer.joomla.org/about/stats.html Sites created on 5.6 remain on that PHP because extensions installed (purchased) for that period were not updated. Those who can switch the PHP version can not do this, since the code is not compatible. Each of you what version of PHP will you use for Joomla 4, after release?
I suggest you consider switching to PHP 8. |
Beta Was this translation helpful? Give feedback.
-
Guess this one can be closed as Joomla 4 is shipped with 7.2.5. |
Beta Was this translation helpful? Give feedback.
-
I agree PHP7.4 minimum PHP version for J! 4; it makes sense. I completely disagree that PHP 8—used on ~1% of all J! websites today—should be the "entry level". PHP 8 (as the minimum standard) makes no sense ... unless to disincentivise J! 4 consumer take-up. |
Beta Was this translation helpful? Give feedback.
-
I will repeat what I wrote before: the technical requirements need a serious review. To get a grasp of the degree of nonsense that goes into the current policy let me explain it in a very easy example. Here we go:
So to make this clear in 10 weeks the minimum browser support will be shifted significantly although that might not be what the project really wants from contributors and their proposed code or sending the wrong kind of message to the end-users. In short, the policy doesn't make any sense for nobody, the project needs to move (at least for the front end) to the minimum acceptable percentage according to feature support |
Beta Was this translation helpful? Give feedback.
-
Can we discuss increasing the PHP version for Joomla 4.1 now? https://stitcher.io/blog/php-version-stats-january-2022 PHP 7.2 and 7.3 are dead. There's no reason to not push the minimum to 7.4. |
Beta Was this translation helpful? Give feedback.
-
Is there a way to refresh the stats on PHP usage on Joomla installs? Its been a year since this discussion started and we seem to be still "using" 1 year old stats. |
Beta Was this translation helpful? Give feedback.
-
PHP 7.2 is already EOL. PHP 7.3 will be EOL this year. PHP 7.4 has nearly 2 years of support planned. I think Joomla 4 shouldn't be releasing with an EOL minimum PHP. PHP 7.4 brings a lot of great features that I think would be of good use to Joomla itself.
https://www.php.net/supported-versions.php
https://www.php.net/manual/en/migration74.new-features.php
The following features specifically would be of significant use.
What are everyone's thoughts on this?
Beta Was this translation helpful? Give feedback.
All reactions