Replies: 19 comments 81 replies
-
I would gladly help doing this although with my current work and duties I will not be able to pull it in reasonable time. Some help is needed definitely. The things to consider are (among others of course):
|
Beta Was this translation helpful? Give feedback.
-
I would like to see Yii2 being in sync with supported PHP versions, so that would be 8,1+ |
Beta Was this translation helpful? Give feedback.
-
I'd suggest to make a research and try to reuse Yii3 packages instead of Yii2 ones if it possible: some helpers, adapters for validators and etc. |
Beta Was this translation helpful? Give feedback.
-
Please, do no use 2.1 as version, pick 2.2 instead - there was already a lot of fuss with 2.1, which had some planned features (and some of them implemented), then renamed to 3.0, and then abandoned. It will be so confusing is someone will try to search about 2.1 and find contradicting information. IMO it is very similar situation as with PHP 6. |
Beta Was this translation helpful? Give feedback.
-
Actually Yii2 is in code freeze state - but the reality is different :)
I'd advocate for
If there's a Yii 2.2 - for 2.0 CVEs and Bugs ONLY, see first line ;) 2.2 has to remain API compatible with 2.0. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
As for the Yii 2.0 maintenance I would drop adding "enhancements" in total. Only security fixes and compatibility layer (which is problematic anyway). |
Beta Was this translation helpful? Give feedback.
-
My vote is also for dropping old PHP versions. |
Beta Was this translation helpful? Give feedback.
-
Some reasons on why people don't switch to PHP 8: https://twitter.com/sam_dark/status/1656549413282611200 |
Beta Was this translation helpful? Give feedback.
-
We could do the following.
|
Beta Was this translation helpful? Give feedback.
-
Is there any (major) plan to do in 2.2? |
Beta Was this translation helpful? Give feedback.
-
In the discussion about which PHP version should be the minimum for Yii 2.2 the argument of current usage by PHP version is brought up a lot. But in my opinion there is a big flaw in that reasoning, it's missing the user needs. I think the current users can be grouped in 3 groups:
So my argument is that even a lot of the current Yii 2 installs are on PHP < 8.1 they are most likely in group 2 (happy to stay). Therefore the question should be: Should group 1 be hold back by group 3? |
Beta Was this translation helpful? Give feedback.
-
It would be nice to cover the codebase with psalm. |
Beta Was this translation helpful? Give feedback.
-
Thought about it more. Current team doesn't have time to do it in a reasonable time but I see positive feedback about the idea itself. Therefore, I think we can form dedicated Yii2 team from community members who are willing to move it forward. So if you want to be in this new team, let me know. |
Beta Was this translation helpful? Give feedback.
-
I read this thread and I'm a bit puzzled. What's the point of Yii 2.2? Just to raise the minimum PHP version and just make sure it works? Ok, so, what then? In my organization, we started writing a webapp from scratch back in late 2011. We used Yii 1.1 at that time. The application is elections specific, so, it's not used all the time, but before and after the elections here in my country. The last time it was used was last June (12 years later) and it run without any issues in PHP 8.0. I tested it a bit with 8.1 and it seems to work fine too. Over the course of the years, the application has grown to several controllers and modules and it will take many months to convert it to Yii 2.0, or even more to another framework. So, unless something big happens, the application will stay in Yii 1.1 forever. Of course, since I know that it will run under 8.0 or 8.1, I can use many newer PHP features in my code and that's fine. What's my point? If 2.2 is just about raising the minimum PHP version without major code refactorings in the framework itself, IMHO it's not a very good idea for a 2.2 branch. Just focus on the existing 2.0 branch, accept fixes for 8.1.x or 8.2.x and all will be good. Please correct me if I misunderstood something. |
Beta Was this translation helpful? Give feedback.
-
So, this discussion came to nothing? No chance to have a bit more modern Yii2 with which we are so familiar with? Guys , you need to be "not lying" about such things. If your work with Yii3 came to fault, it would be reasonable to accept this reality and think about what Yii framework people could use in the current time. |
Beta Was this translation helpful? Give feedback.
-
Hi, here is the repository for app-basic for Yii2, which contains: 1.- Vertical Slices design. You can find the repository here: https://github.com/yii2-extensions/app-basic |
Beta Was this translation helpful? Give feedback.
-
Can we still talk about features/roadmap for 2.2 here? Besides the PHP upgrade, the most painful thing for me with yii2 is related to DevOps, deployment in particular: the AssetManager needs to be refactored in a way to make stateless deployments possible, in docker containers, specifically. Not sure what is the best way, but one idea I tried is mikk150/yii2-asset-manager-flysystem, or maybe we should include a command that publishes all assets from CLI. I'm willing to work on this after we brainstorm ideas. Thank you! |
Beta Was this translation helpful? Give feedback.
-
Let's talk about possibility to bump Yii to
2.1(2.2).Beta Was this translation helpful? Give feedback.
All reactions