Replies: 21 comments 85 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.
-
This conversation seems to have dwindled. I realize the world keeps us all very busy, and as far as Yii2 goes, I find that it still works very well. It's just a little old and some of the coding practices have changed. I'd like to share some thoughts. Maybe it will help. Please forgive me if I offend anyone (I tend to do that...) There are a lot of frameworks out there, some with very impressive backing. But Yii2 has always been near the top (and some would say at the top) for years. It's an impressive framework. But why? Other than the great coding and thought that went into it, it offers some compelling advantages: [ ] It is easy to roll out a new project with just about everything you needed to support a robust website: MCV, Security, Auth, Database, Ajax, an easy templating systems (Views), etc. Yii3 on the other hand is cutting edge, uses the latest coding patterns and is extremely moldable. I just find it hard to start up a new project. There are way too many decisions to make and some of the info on how to add functionality is difficult to find and/or understand. In short there is an incredibly large learning curve. This is very different from Yii2. Laravel is more popular than Symfony for one simple reason: It's easy to get started and has a smaller learning curve. Both are impressive frameworks and are very similar to Yii3 in using the latest modular coding patterns - they are SOLID. With Laravel you can start a new project and add in basic security (auth) with just a couple of commands. Symfony, on the other hand, has a BOOK to describe how to do it. Phew! (And in the book the author makes all kinds of decisions for you - kind of defeating the foundation of the framework.) I propose that Yii2.2 be simply a prefactored, ready-to-go, implementation for Yii3. And, like Yii2, with it's basic and advanced versions, offer a selection of "Project Types". To be continued...? |
Beta Was this translation helpful? Give feedback.
-
a continuation... I'm sometimes called a full-stack programmer. I sometimes called a lot of bad things as well, but, anyway... I remember when Centos first came out and it was a Godsend! So stable! Before that it was a constant battle to update the servers. You always had to have a test server to try out anything before updating a production server. Just the server, never mind the code. And the same with PHP. Trying to mix and match various libraries was a nightmore! Even with PEAR. Then along came Composer! Another Godsend! And many years ago I'd written several website with just PHP - no libraries. In fact, the one time I used a library - the site got hacked because of a hole in the library and brought down the server - crash! Then along came PHP Frameworks! Yes, another Godsend! My point? What we need as programmers is solid supporting infrastructure. The less we have to worry about it the better. That's why I went with Yii 1. It gave a solid foundation for my websites, and I could spend most of my time writing the business logic and having fun with front end layout. Very nice! Yii2 was even better. (Well, the migration from Yii1 to Yii2 was intense - but worth it.) So I'd like to recommend that we de-emphasize the modularity of Yii3 and wrap it up a bit with "ready to run" implementations. It will always be modular. But as programmers I think we'd like something a little more ready to go for most websites. Symfony is fantastic, but having to go through a whole Book just to get a robust working website is too much. I'd like to hope that Yii3 would not require such a book... |
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