Time to update PHP min.version is come #19255
Replies: 13 comments 18 replies
-
Here's the actual stats for Yii2: https://packagist.org/packages/yiisoft/yii2/php-stats. PHP 5.* is 2.1% and that is about 200 installs daily. Not sure we want to just drop these. |
Beta Was this translation helpful? Give feedback.
-
@bizley yes, I have: my friend is sysadmin of biggest rus hosting and we talk about it 3-4 yeas ago. |
Beta Was this translation helpful? Give feedback.
-
@bizley @samdark let's true do this and if something come and show real reasons why he can't update PHP we rollback version. I've been through this before - no one will mind. |
Beta Was this translation helpful? Give feedback.
-
To be honest I wouldn't mind bumping the version. But I've seen this discussion many times here before. With Yii 3 coming I don't think we need to do this. |
Beta Was this translation helpful? Give feedback.
-
@bizley You want Yii3? ok, good luck and good bye! But you != all - as many other developers, I'm don't planed migrate Yii 3 (many reason, not for current discuss). You don't want upgrade Yii2 and block any external changes - it's not right way. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Would there be any performance gains when rewriting framework code? |
Beta Was this translation helpful? Give feedback.
-
There is the question, if we indefinitely support yii2, it might be good to drop older php versions and only provide limited support. |
Beta Was this translation helpful? Give feedback.
-
But Yii2 is also in a code freeze state, so we won't do large rewrites of the framework code. Just in case ... if the min version would be raised, that would also justify a But still, I do not see the benefits (yet). |
Beta Was this translation helpful? Give feedback.
-
Yii2 uses lot of crutches and polyfills that are not needed in PHP7. For example, JSON helper and StringHelper. "We sepates Yii2 into packages" is not Yii3. Yes, some packages are reworked, but in most cases it's Yii2 legacy code. |
Beta Was this translation helpful? Give feedback.
-
I am really with you @WinterSilence ! We should bumb yii version, and modernize framework. I think it is a big effort, but there is possible big win from it. . By modernizing the project, old disapointed high-skilled community members are not leaving the community they will start new projects in yii2 (yii3 not part of the discussion is still not here), many new people could be attracted to the ranks of yiisoft. From this, yii3 could also be very porphytic, perhaps it could seem like a smooth marketing pull. There was a time when the organization was in a particularly undead state (I felt that way myself), which is exactly why the topic is here, many people want to move forward, with a version upgrade we could make it feel like we are working in a current up to date framework. These reactions, hesitation, did the communites very badly. With these small steps, gestures could be made towards new people and towards those who are thinking of leaving the group to stay, join. Yii3 may come this year (no issue on opencollective recenty, so we outsiders don't know), but due to the completeness of yii2 (it is a full stack, you don't need anything else if you don't want), many of us, like me, won’t be leaving right away, max integrating yii3 into our projects where possible. Php version we are tallking about is not supported for long time https://www.php.net/supported-versions.php as all you know. The purity and style of the code in the Framework contributes a lot to how a programmer develops. The innovations brought by PHP built into the framework can also help developers a lot to write better code. Developers (companies) are not supporting specific version of browsers to be able to have better codebase, but people are still using old browsers. I think it is same for PHP yiisoft should not support old attackable php versions, which would force some leftover providers to migrate to at least one newer version. One more thing, maintaining a project which sits on PHP 7.4 less effort, core team could focus more on yii3. |
Beta Was this translation helpful? Give feedback.
-
@papppeter 1. The owners writing "it's bad practice, but we can't change it in Yii2 because it breaks BC", but many Yii3 packages consist of Yii2 classes copied without any changes. The number of packages is more important than their quality?
All this things encourages me to continue using and extending Yii2. |
Beta Was this translation helpful? Give feedback.
-
New reason to update: current dev. dependencies/packages not supports PHP > 7.2 |
Beta Was this translation helpful? Give feedback.
-
Packagist/Composer statistics 2021 show that PHP 5.4 is not used(5.5-5.6 ~5%) and not supported long time ago.
Let's update PHP min.version to 5.6 to use new features as: variadic arguments, short unpacking,
::class
!Beta Was this translation helpful? Give feedback.
All reactions